mirror of https://github.com/snes9xgit/snes9x.git
Merge pull request #286 from LuigiBlood/bsx
[BS-X] Preventing infinite loop when fixing Allocation flags
This commit is contained in:
commit
25b714b52f
2
bsx.cpp
2
bsx.cpp
|
@ -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++)
|
||||||
|
|
Loading…
Reference in New Issue