Skip to content

Commit

Permalink
- make sure auto cios chooses a base of 56 or higher.
Browse files Browse the repository at this point in the history
- change second i to j to fix a possible boot arg issue.
  • Loading branch information
Fledge68 committed Aug 14, 2024
1 parent 80e4ed0 commit d24a16e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified out/boot.dol
Binary file not shown.
4 changes: 2 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/menu/menu_game_boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d24a16e

Please sign in to comment.