mirror of https://github.com/snes9xgit/snes9x.git
Fix multicart loading with only one cart
This commit is contained in:
parent
26914fa9b0
commit
357fead53b
|
@ -1871,9 +1871,9 @@ bool8 CMemory::LoadMultiCartInt ()
|
||||||
if(Multi.cartType == 4 && Multi.cartOffsetA == 0) { // try to load bios from file
|
if(Multi.cartType == 4 && Multi.cartOffsetA == 0) { // try to load bios from file
|
||||||
Multi.cartOffsetA = 0x40000;
|
Multi.cartOffsetA = 0x40000;
|
||||||
if(Multi.cartSizeA)
|
if(Multi.cartSizeA)
|
||||||
memmove(ROM + Multi.cartOffsetA,ROM,Multi.cartOffsetB - Multi.cartOffsetA);
|
memmove(ROM + Multi.cartOffsetA, ROM, Multi.cartSizeA + Multi.cartSizeB);
|
||||||
else // clear cart A so the bios can detect that it's not present
|
else if(Multi.cartOffsetB) // clear cart A so the bios can detect that it's not present
|
||||||
memset(ROM,0,Multi.cartOffsetB);
|
memset(ROM, 0, Multi.cartOffsetB);
|
||||||
|
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
Loading…
Reference in New Issue