diff options
author | twinaphex | 2014-12-31 11:43:39 +0100 |
---|---|---|
committer | twinaphex | 2014-12-31 11:43:39 +0100 |
commit | be1294d017cba3f18cf66597f0cbed207fed26bf (patch) | |
tree | 84856d7c7fb7357ed94f8748d649060b7a83274a /libpcsxcore/misc.c | |
parent | e63a9dc66d0ce5a9d88353f880ef88a6590d06fd (diff) | |
parent | 3aba41853f8dc014ff61e05e8a2c616d89f88715 (diff) | |
download | pcsx_rearmed-be1294d017cba3f18cf66597f0cbed207fed26bf.tar.gz pcsx_rearmed-be1294d017cba3f18cf66597f0cbed207fed26bf.tar.bz2 pcsx_rearmed-be1294d017cba3f18cf66597f0cbed207fed26bf.zip |
Merge https://github.com/notaz/pcsx_rearmed
Diffstat (limited to 'libpcsxcore/misc.c')
-rw-r--r-- | libpcsxcore/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 3ee9876..58170cf 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -573,7 +573,7 @@ int SaveState(const char *file) { f = SaveFuncs.open(file, "wb"); if (f == NULL) return -1; - new_dyna_save(); + new_dyna_before_save(); SaveFuncs.write(f, (void *)PcsxHeader, 32); SaveFuncs.write(f, (void *)&SaveVersion, sizeof(u32)); @@ -615,6 +615,7 @@ int SaveState(const char *file) { psxHwFreeze(f, 1); psxRcntFreeze(f, 1); mdecFreeze(f, 1); + new_dyna_freeze(f, 1); SaveFuncs.close(f); @@ -679,9 +680,9 @@ int LoadState(const char *file) { psxHwFreeze(f, 0); psxRcntFreeze(f, 0); mdecFreeze(f, 0); + new_dyna_freeze(f, 0); SaveFuncs.close(f); - new_dyna_restore(); return 0; } |