mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 17:09:43 +00:00
cps1 bootleg, prevent crash w/states and rewind
This commit is contained in:
parent
0c8bfc12cf
commit
1cf2c54a58
@ -17052,6 +17052,7 @@ static INT32 DrvExit()
|
||||
if (NULL != szGameName) szGameName = NULL;
|
||||
|
||||
BurnFree(CpsBootlegSpriteRam);
|
||||
CpsBootlegSpriteRam = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -17072,7 +17073,7 @@ static INT32 MpumpkinInit()
|
||||
|
||||
static INT32 CpsBootlegSpriteRamScanCallback(INT32 nAction, INT32*)
|
||||
{
|
||||
if (nAction & ACB_MEMORY_RAM) {
|
||||
if (nAction & ACB_MEMORY_RAM && CpsBootlegSpriteRam != NULL) {
|
||||
struct BurnArea ba;
|
||||
memset(&ba, 0, sizeof(ba));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user