aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-09-15 02:14:08 +0200
committerStapleButter <thetotalworm@gmail.com>2018-09-15 02:14:08 +0200
commit1d19145983069c622b72acfc5528eff3cef4f5f0 (patch)
tree6f6b7aa1ec9b91083e0c52a5e4d7df2482544672 /src
parentaa59ee257e2c31db78cc2e2df3a6ca3857aa6ade (diff)
moar working now.
Diffstat (limited to 'src')
-rw-r--r--src/Savestate.cpp4
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;
}
}