mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
GE Debugger: Gah, fix some pointer size errors.
Happened to be 8 bytes, but not on 32-bit, of course.
This commit is contained in:
1 parent
ae9451694e
commit
14cf862e22
1 file changed
+2
-2
@@ -383,7 +383,7 @@ static void WriteRecording() {
|
||||
|
||||
const std::string filename = GenRecordingFilename();
|
||||
FILE *fp = File::OpenCFile(filename, "wb");
|
||||
fwrite(HEADER, sizeof(HEADER), 1, fp);
|
||||
fwrite(HEADER, 8, 1, fp);
|
||||
fwrite(&VERSION, sizeof(VERSION), 1, fp);
|
||||
|
||||
u32 sz = (u32)commands.size();
|
||||
@@ -1003,7 +1003,7 @@ bool RunMountedReplay(const std::string &filename) {
|
||||
pspFileSystem.ReadFile(fp, header, sizeof(header));
|
||||
pspFileSystem.ReadFile(fp, (u8 *)&version, sizeof(version));
|
||||
|
||||
if (memcmp(header, HEADER, sizeof(HEADER)) != 0 || version != VERSION) {
|
||||
if (memcmp(header, HEADER, sizeof(header)) != 0 || version != VERSION) {
|
||||
ERROR_LOG(SYSTEM, "Invalid GE dump or unsupported version");
|
||||
pspFileSystem.CloseFile(fp);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user