Fixed crash after SuperFX savestates are loaded.

This commit is contained in:
jbo_85
2006-03-03 19:56:58 +00:00
parent 85e0886b43
commit bc5825c34c

View File

@@ -666,7 +666,7 @@ void statesaver()
} }
extern unsigned int KeyLoadState, Totalbyteloaded, SfxMemTable[256], SfxCPB; extern unsigned int KeyLoadState, Totalbyteloaded, SfxMemTable[256], SfxCPB;
extern unsigned int SfxPBR, SfxROMBR, SfxRAMBR; extern unsigned int SfxPBR, SfxROMBR, SfxRAMBR, SCBRrel, SfxSCBR;
extern unsigned char pressed[256+128+64], multchange, ioportval, SDD1Enable; extern unsigned char pressed[256+128+64], multchange, ioportval, SDD1Enable;
extern unsigned char nexthdma; extern unsigned char nexthdma;
@@ -742,6 +742,7 @@ bool zst_load(FILE *fp, size_t Compressed)
SfxRAMMem = (unsigned int)sfxramdata + ((SfxRAMBR & 0xFF) << 16); SfxRAMMem = (unsigned int)sfxramdata + ((SfxRAMBR & 0xFF) << 16);
SfxRomBuffer += SfxCROM; SfxRomBuffer += SfxCROM;
SfxLastRamAdr += SfxRAMMem; SfxLastRamAdr += SfxRAMMem;
SCBRrel = (SfxSCBR << 10) + (unsigned int)sfxramdata;
} }
if (SA1Enable) if (SA1Enable)