mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 02:02:39 +02:00
Minor optimization
This commit is contained in:
@@ -77,11 +77,11 @@
|
||||
|
||||
- (NSString *)romFileForROM:(NSString *)rom
|
||||
{
|
||||
if ([rom isEqualToString:@"Inbox"]) return nil;
|
||||
if ([rom isEqualToString:@"Boot ROMs"]) return nil;
|
||||
if (rom == _currentROM) {
|
||||
return self.romFile;
|
||||
}
|
||||
if ([rom isEqualToString:@"Inbox"]) return nil;
|
||||
if ([rom isEqualToString:@"Boot ROMs"]) return nil;
|
||||
|
||||
|
||||
return [self romFileForDirectory:[self romDirectoryForROM:rom]];
|
||||
|
@@ -895,7 +895,7 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp)
|
||||
GB_switch_model_and_reset(&_gb, [[NSUserDefaults standardUserDefaults] integerForKey:@"GBCGBModel"]);
|
||||
}
|
||||
}
|
||||
else if ((rom[0x146] == 3) && !GB_is_sgb(&_gb)) {
|
||||
else if ((rom[0x146] == 3) && !GB_is_sgb(&_gb)) {
|
||||
GB_switch_model_and_reset(&_gb, [[NSUserDefaults standardUserDefaults] integerForKey:@"GBSGBModel"]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user