added proper file checking for opening files
This commit is contained in:
parent
38c6961138
commit
2c1c1a0a6c
|
@ -723,7 +723,7 @@ bool FCEUSS_Load(const char *fname)
|
|||
strcpy(lastLoadstateMade,fn);
|
||||
}
|
||||
|
||||
if(st == NULL)
|
||||
if(st == NULL || (st->get_fp() == NULL))
|
||||
{
|
||||
FCEU_DispMessage("State %d load error.",0,CurrentState);
|
||||
SaveStateStatus[CurrentState]=0;
|
||||
|
|
Loading…
Reference in New Issue