mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
fix potential crash
This commit is contained in:
parent
f2773a5b9c
commit
0f16f3b191
@ -95,13 +95,15 @@ int GCMemROM(int method, int size)
|
|||||||
ErrorPrompt("FDS BIOS file is invalid!");
|
ErrorPrompt("FDS BIOS file is invalid!");
|
||||||
else
|
else
|
||||||
ErrorPrompt("FDS BIOS file not found!");
|
ErrorPrompt("FDS BIOS file not found!");
|
||||||
return 0; // BIOS not loaded, do not load game
|
|
||||||
}
|
}
|
||||||
free(tmpbuffer);
|
free(tmpbuffer);
|
||||||
}
|
}
|
||||||
// load game
|
if (FDSBIOS[1] != 0)
|
||||||
if (FDSLoad(romFilename, fceufp))
|
{
|
||||||
romLoaded = true;
|
// load game
|
||||||
|
if (FDSLoad(romFilename, fceufp))
|
||||||
|
romLoaded = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete fceufp;
|
delete fceufp;
|
||||||
|
Loading…
Reference in New Issue
Block a user