Merge pull request #286 from LuigiBlood/bsx

[BS-X] Preventing infinite loop when fixing Allocation flags
This commit is contained in:
bearoso 2018-05-01 20:42:39 -05:00 committed by GitHub
commit 25b714b52f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1481,7 +1481,7 @@ void S9xInitBSX (void)
// (for games that don't have it setup properly, // (for games that don't have it setup properly,
// for exemple when taken seperately from the upper memory of the Memory Pack, // for exemple when taken seperately from the upper memory of the Memory Pack,
// else the game will error out on BS-X) // else the game will error out on BS-X)
for (; (header[0x10] & 1) == 0; (header[0x10] >>= 1)); for (; (((header[0x10] & 1) == 0) && header[0x10] != 0); (header[0x10] >>= 1));
#ifdef BSX_DEBUG #ifdef BSX_DEBUG
for (int i = 0; i <= 0x1F; i++) for (int i = 0; i <= 0x1F; i++)