summaryrefslogtreecommitdiff
path: root/libpcsxcore/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/misc.c')
-rwxr-xr-xlibpcsxcore/misc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index 02b28467..581e6db9 100755
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -554,8 +554,10 @@ void RewindState() {
LoadStateMem(mem_cur_save_count);
}
-/*
+GPUFreeze_t *gpufP = NULL;
+SPUFreeze_t *spufP = NULL;
+/*
Pros of using SHM
+ No need to change SaveState interface (gzip OK)
+ Possibiliy to preserve saves after pcsxr crash
@@ -619,8 +621,6 @@ int LoadStateMem(const u32 id) {
return ret;
}
-GPUFreeze_t* gpufP = NULL;
-SPUFreeze_t *spufP = NULL;
void CleanupMemSaveStates() {
char name[32];
u32 i;
@@ -680,7 +680,7 @@ int SaveStateGz(gzFile f, long* gzsize) {
spufP->Size = Size;
if (spufP->Size <= 0) {
- gzclose_w(f);
+ gzclose(f);
free(spufP);
spufP = NULL;
return 1; // error
@@ -698,7 +698,7 @@ int SaveStateGz(gzFile f, long* gzsize) {
mdecFreeze(f, 1);
if(gzsize)*gzsize = gztell(f);
- gzclose_w(f);
+ gzclose(f);
return 0;
}
@@ -751,7 +751,7 @@ int LoadStateGz(gzFile f) {
psxRcntFreeze(f, 0);
mdecFreeze(f, 0);
- gzclose_r(f);
+ gzclose(f);
return 0;
}