git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 93aa93e42c708e93b0a51ac2238e9fc2ddf5bb4a
parent 65a646f05022db7a3ee6ba484cf5749f19ca87dc
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu,  2 Feb 2023 00:21:47 +0200

I forgot ISX support

Diffstat:
MiOS/GBViewController.m7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m @@ -275,7 +275,12 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp) GBROMManager *romManager = [GBROMManager sharedManager]; if (romManager.romFile) { // Todo: display errors and warnings - _romLoaded = GB_load_rom(&_gb, romManager.romFile.fileSystemRepresentation) == 0; + if ([romManager.romFile.pathExtension.lowercaseString isEqualToString:@"isx"]) { + _romLoaded = GB_load_isx(&_gb, romManager.romFile.fileSystemRepresentation) == 0; + } + else { + _romLoaded = GB_load_rom(&_gb, romManager.romFile.fileSystemRepresentation) == 0; + } GB_rewind_reset(&_gb); if (_romLoaded) { GB_reset(&_gb);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.