diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-09-15 02:14:08 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-09-15 02:14:08 +0200 |
commit | 1d19145983069c622b72acfc5528eff3cef4f5f0 (patch) | |
tree | 6f6b7aa1ec9b91083e0c52a5e4d7df2482544672 /src | |
parent | aa59ee257e2c31db78cc2e2df3a6ca3857aa6ade (diff) |
moar working now.
Diffstat (limited to 'src')
-rw-r--r-- | src/Savestate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Savestate.cpp b/src/Savestate.cpp index 9e8a37a..77773e6 100644 --- a/src/Savestate.cpp +++ b/src/Savestate.cpp @@ -160,6 +160,8 @@ void Savestate::Section(char* magic) fseek(file, pos, SEEK_SET); } + CurSection = (u32)ftell(file); + fwrite(magic, 4, 1, file); fseek(file, 12, SEEK_CUR); } @@ -185,7 +187,7 @@ void Savestate::Section(char* magic) continue; } - fseek(file, 8, SEEK_CUR); + fseek(file, 12, SEEK_CUR); break; } } |