diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-03-23 15:57:08 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-03-23 15:57:08 +0000 |
| commit | d9b54dd318e57b22d608c10f5c44edc3ee86f4f8 (patch) | |
| tree | cd7676c902b4045dbdbb43c57ced9b34ce7a1f21 /libpcsxcore | |
| parent | 19a65e820e4f1029c9a2273c32e605c77e71550a (diff) | |
| download | pcsxr-d9b54dd318e57b22d608c10f5c44edc3ee86f4f8.tar.gz | |
windows compilation fix;
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89535 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rwxr-xr-x | libpcsxcore/misc.c | 12 |
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; } |
