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:
parent
f2cd7ad4b0
commit
2a85d684eb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue