added proper file checking for opening files

This commit is contained in:
qeed 2010-09-17 18:56:17 +00:00
parent 38c6961138
commit 2c1c1a0a6c
1 changed files with 3 additions and 3 deletions

View File

@ -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;