From 1d19145983069c622b72acfc5528eff3cef4f5f0 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sat, 15 Sep 2018 02:14:08 +0200 Subject: [PATCH] moar working now. --- src/Savestate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Savestate.cpp b/src/Savestate.cpp index 9e8a37a6..77773e6e 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; } }