aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/misc.c
diff options
context:
space:
mode:
authortwinaphex2014-12-31 11:43:39 +0100
committertwinaphex2014-12-31 11:43:39 +0100
commitbe1294d017cba3f18cf66597f0cbed207fed26bf (patch)
tree84856d7c7fb7357ed94f8748d649060b7a83274a /libpcsxcore/misc.c
parente63a9dc66d0ce5a9d88353f880ef88a6590d06fd (diff)
parent3aba41853f8dc014ff61e05e8a2c616d89f88715 (diff)
downloadpcsx_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.c5
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;
}