Skip to content

Commit

Permalink
Fix for games played stay unzipped (Nukotan)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsuya79 committed Jun 25, 2014
1 parent 9aa1eb1 commit 69fbd78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mednafen/file.cpp
Expand Up @@ -35,6 +35,8 @@ bool MDFNFILE::ApplyIPS(void *unused)
// even if it errors out.
bool MDFNFILE::MakeMemWrapAndClose(void *fp)
{
bool ret = FALSE;

location = 0;

::fseek((FILE *)fp, 0, SEEK_END);
Expand All @@ -45,10 +47,10 @@ bool MDFNFILE::MakeMemWrapAndClose(void *fp)
goto fail;
::fread(f_data, 1, f_size, (FILE *)fp);

return TRUE;
ret = TRUE;
fail:
fclose((FILE*)fp);
return FALSE;
return ret;
}

MDFNFILE::MDFNFILE()
Expand Down

0 comments on commit 69fbd78

Please sign in to comment.