From d24a16e5c35cb4538ba7ac38c38d199757764a1a Mon Sep 17 00:00:00 2001 From: Fledge68 Date: Wed, 14 Aug 2024 16:03:11 -0500 Subject: [PATCH] - make sure auto cios chooses a base of 56 or higher. - change second i to j to fix a possible boot arg issue. --- out/boot.dol | Bin 4579872 -> 4579872 bytes source/main.cpp | 4 ++-- source/menu/menu_game_boot.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/out/boot.dol b/out/boot.dol index d7dd8ca1436acc980a1966100918ab1640ba2ef0..db55645bd0a424f4b27ab047f69504c34e64a089 100644 GIT binary patch delta 262 zcmWN=#SOv$7=Te6io3fOcZ&NUoH_?2f5He{8G?j_GXv2L_+Ij!--qSNtC+26c*Q4v2}tl2x)=^sF=>a}T{l7uGr}lij5EO`Q%p0%EOX4Wz#>a5v%)HC vtg}ItO}5x(hh6sA=YT_wIOc>?&Zu$D1(#fL%?-EQanA#fJiT?}{Q3O>%s+e` delta 262 zcmWN=#SOv$7=TgSt++eI-Mz>loH_>~f5He{8G?j_GXv2L_+Ij!--qSNtC+a5v%)HC vR9R<(O}5x(hh6sA=YT_wIOc>?&N%0SORl))hFk8qr^W-1JiT?}{Q3O>!FhZT diff --git a/source/main.cpp b/source/main.cpp index b906d196..e8bfd29b 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -65,9 +65,9 @@ int main(int argc, char **argv) else if(strlen(argv[i]) == 6 || strlen(argv[i]) == 4) { strcpy(gameid, argv[i]); - for(u8 i = 0; i < strlen(gameid) - 1; i++) + for(u8 j = 0; j < strlen(gameid) - 1; j++) { - if(!isalnum(gameid[i])) + if(!isalnum(gameid[j])) { gameid[0] = 0; break; diff --git a/source/menu/menu_game_boot.cpp b/source/menu/menu_game_boot.cpp index 20b7033f..6712b0f4 100644 --- a/source/menu/menu_game_boot.cpp +++ b/source/menu/menu_game_boot.cpp @@ -775,7 +775,7 @@ int CMenu::_loadGameIOS(u8 gameIOS, int userIOS, const char *id, bool RealNAND_C { for(CIOSItr itr = _cios_base.begin(); itr != _cios_base.end(); itr++) { - if(itr->first > gameIOS && itr->first != 38)//compare bases + if(itr->first > gameIOS && itr->first >= 56)//compare bases { slot = itr->second;// set to cios slot break;