SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5b983bc7adcd0da288a7b2f64bfba1f55c32fef2 parent 634b90e4fc373b26476dcd408c2f70cb85abd2bb Author: Lior Halphon <LIJI32@gmail.com> Date: Sun, 20 Jul 2025 21:58:36 +0300 Minor optimization Diffstat:
| M | iOS/GBROMManager.m | 4 | ++-- |
| M | iOS/GBViewController.m | 2 | +- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/iOS/GBROMManager.m b/iOS/GBROMManager.m @@ -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]]; diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m @@ -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"]); } }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.