summaryrefslogtreecommitdiffstats
path: root/src/save
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-17 15:31:11 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-17 15:31:11 +0200
commit599164006a9e7eb7328fc194c9bae1acbb2c887d (patch)
treec4dc5a5e2bf370e74ffc8ab4b9220ea6e066e952 /src/save
parentMerge remote-tracking branch 'samler/world' into Standalone (diff)
downloadre3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar
re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.gz
re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.bz2
re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.lz
re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.xz
re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.zst
re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.zip
Diffstat (limited to 'src/save')
-rw-r--r--src/save/GenericGameStorage.cpp21
-rw-r--r--src/save/PCSave.cpp10
2 files changed, 2 insertions, 29 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index 88f32c33..763f516a 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -1,7 +1,7 @@
#define WITHWINDOWS
#include "common.h"
#include "main.h"
-#include "patcher.h"
+
#include "AudioScriptObject.h"
#include "Camera.h"
#include "CarGen.h"
@@ -553,22 +553,3 @@ align4bytes(int32 size)
{
return (size + 3) & 0xFFFFFFFC;
}
-
-STARTPATCHES
- InjectHook(0x58F8D0, GenericSave, PATCH_JUMP);
- InjectHook(0x590A00, GenericLoad, PATCH_JUMP);
- InjectHook(0x591910, ReadInSizeofSaveFileBuffer, PATCH_JUMP);
- InjectHook(0x591990, ReadDataFromFile, PATCH_JUMP);
- InjectHook(0x591A00, CloseFile, PATCH_JUMP);
- InjectHook(0x591A20, DoGameSpecificStuffAfterSucessLoad, PATCH_JUMP);
- InjectHook(0x591A40, CheckSlotDataValid, PATCH_JUMP);
- InjectHook(0x591A80, MakeSpaceForSizeInBufferPointer, PATCH_JUMP);
- InjectHook(0x591AA0, CopySizeAndPreparePointer, PATCH_JUMP);
- InjectHook(0x591AE0, DoGameSpecificStuffBeforeSave, PATCH_JUMP);
- InjectHook(0x591B10, MakeValidSaveName, PATCH_JUMP);
- InjectHook(0x591B50, GetSavedGameDateAndTime, PATCH_JUMP);
- InjectHook(0x591B60, GetNameOfSavedGame, PATCH_JUMP);
- InjectHook(0x591B70, CheckDataNotCorrupt, PATCH_JUMP);
- InjectHook(0x591D60, RestoreForStartLoad, PATCH_JUMP);
- InjectHook(0x591E80, align4bytes, PATCH_JUMP);
-ENDPATCHES \ No newline at end of file
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp
index 06024e04..3794ba88 100644
--- a/src/save/PCSave.cpp
+++ b/src/save/PCSave.cpp
@@ -1,6 +1,6 @@
#define WITHWINDOWS
#include "common.h"
-#include "patcher.h"
+
#include "FileMgr.h"
#include "GenericGameStorage.h"
#include "Messages.h"
@@ -136,11 +136,3 @@ C_PcSave::PopulateSlotInfo()
}
}
}
-
-STARTPATCHES
- InjectHook(0x591EA0, C_PcSave::SetSaveDirectory, PATCH_JUMP);
- InjectHook(0x5922F0, &C_PcSave::DeleteSlot, PATCH_JUMP);
- InjectHook(0x591EC0, &C_PcSave::SaveSlot, PATCH_JUMP);
- InjectHook(0x591F80, &C_PcSave::PcClassSaveRoutine, PATCH_JUMP);
- InjectHook(0x592090, &C_PcSave::PopulateSlotInfo, PATCH_JUMP);
-ENDPATCHES \ No newline at end of file