From 93aa93e42c708e93b0a51ac2238e9fc2ddf5bb4a Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 2 Feb 2023 00:21:47 +0200 Subject: [PATCH] I forgot ISX support --- iOS/GBViewController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m index 122300b..cda8a25 100644 --- 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);