mirror of
https://github.com/libretro/beetle-wswan-libretro.git
synced 2025-03-01 04:25:37 +00:00
Merge pull request #1 from Nukotan/patch
Fix for games played stay unzipped
This commit is contained in:
commit
4d3f7bedbc
@ -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);
|
||||
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user