mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +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!");
|
||||
else
|
||||
ErrorPrompt("FDS BIOS file not found!");
|
||||
return 0; // BIOS not loaded, do not load game
|
||||
}
|
||||
free(tmpbuffer);
|
||||
}
|
||||
// load game
|
||||
if (FDSLoad(romFilename, fceufp))
|
||||
romLoaded = true;
|
||||
if (FDSBIOS[1] != 0)
|
||||
{
|
||||
// load game
|
||||
if (FDSLoad(romFilename, fceufp))
|
||||
romLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
delete fceufp;
|
||||
|
Loading…
Reference in New Issue
Block a user