crash fix for win32 closerom
This commit is contained in:
parent
9828dc1ce7
commit
87a167983e
|
@ -949,6 +949,8 @@ int NDS_LoadROM(const char *filename, const char *logicalFilename)
|
||||||
#endif
|
#endif
|
||||||
void NDS_FreeROM(void)
|
void NDS_FreeROM(void)
|
||||||
{
|
{
|
||||||
|
if ((u8*)MMU.CART_ROM == (u8*)gameInfo.romdata)
|
||||||
|
gameInfo.romdata = NULL;
|
||||||
if (MMU.CART_ROM != MMU.UNUSED_RAM)
|
if (MMU.CART_ROM != MMU.UNUSED_RAM)
|
||||||
delete [] MMU.CART_ROM;
|
delete [] MMU.CART_ROM;
|
||||||
MMU_unsetRom();
|
MMU_unsetRom();
|
||||||
|
|
Loading…
Reference in New Issue