- make sure auto cios chooses a base of 56 or higher.

- change second i to j to fix a possible boot arg issue.
This commit is contained in:
Fledge68 2024-08-14 16:03:11 -05:00
parent 80e4ed0170
commit d24a16e5c3
3 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View File

@ -65,9 +65,9 @@ int main(int argc, char **argv)
else if(strlen(argv[i]) == 6 || strlen(argv[i]) == 4) else if(strlen(argv[i]) == 6 || strlen(argv[i]) == 4)
{ {
strcpy(gameid, argv[i]); 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; gameid[0] = 0;
break; break;

View File

@ -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++) 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 slot = itr->second;// set to cios slot
break; break;