Cocoa Port:

- Disable replay related UI elements whenever a ROM is not loaded or if the save state sheet is shown.
This commit is contained in:
rogerman 2014-02-08 03:32:45 +00:00
parent f2cd7ad4b0
commit 2a85d684eb
1 changed files with 21 additions and 0 deletions

View File

@ -2344,6 +2344,27 @@
} }
} }
} }
else if (theAction == @selector(openReplay:))
{
if ([self currentRom] == nil || [self isRomLoading] || [self isShowingSaveStateDialog])
{
enable = NO;
}
}
else if (theAction == @selector(recordReplay:))
{
if ([self currentRom] == nil || [self isRomLoading] || [self isShowingSaveStateDialog])
{
enable = NO;
}
}
else if (theAction == @selector(stopReplay:))
{
if ([self currentRom] == nil || [self isRomLoading] || [self isShowingSaveStateDialog])
{
enable = NO;
}
}
else if (theAction == @selector(changeCoreSpeed:)) else if (theAction == @selector(changeCoreSpeed:))
{ {
NSInteger speedScalar = (NSInteger)([cdsCore speedScalar] * 100.0); NSInteger speedScalar = (NSInteger)([cdsCore speedScalar] * 100.0);