diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-15 12:54:46 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-15 12:54:46 +0100 |
commit | a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1 (patch) | |
tree | 147d551bbb7f0de6d6048566405956f18252bfff /src/save | |
parent | script 900-999 (diff) | |
parent | Merge pull request #326 from erorcun/erorcun (diff) | |
download | re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.gz re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.bz2 re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.lz re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.xz re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.zst re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/save/GenericGameStorage.cpp | 2 | ||||
-rw-r--r-- | src/save/GenericGameStorage.h | 3 | ||||
-rw-r--r-- | src/save/PCSave.cpp | 2 | ||||
-rw-r--r-- | src/save/PCSave.h | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 8d3137f1..5a55dbd5 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -28,8 +28,6 @@ char SaveFileNameJustSaved[260]; int (&Slots)[SLOT_COUNT+1] = *(int(*)[SLOT_COUNT+1])*(uintptr*)0x72803C; CDate &CompileDateAndTime = *(CDate*)0x72BCB8; -C_PcSave &PcSaveHelper = *(C_PcSave*)0x8E2C60; - #define ReadDataFromBufferPointer(buf, to) memcpy(&to, buf, sizeof(to)); buf += align4bytes(sizeof(to)); #define WriteDataToBufferPointer(buf, from) memcpy(buf, &from, sizeof(from)); buf += align4bytes(sizeof(from)); diff --git a/src/save/GenericGameStorage.h b/src/save/GenericGameStorage.h index b8be1e79..e22dfc7e 100644 --- a/src/save/GenericGameStorage.h +++ b/src/save/GenericGameStorage.h @@ -34,5 +34,4 @@ extern int (&Slots)[SLOT_COUNT+1]; extern char SaveFileNameJustSaved[260]; // 8F2570
-const char TopLineEmptyFile[] = "THIS FILE IS NOT VALID YET";
-extern C_PcSave &PcSaveHelper;
\ No newline at end of file +const char TopLineEmptyFile[] = "THIS FILE IS NOT VALID YET";
\ No newline at end of file diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp index 02bd08ad..2702bd6e 100644 --- a/src/save/PCSave.cpp +++ b/src/save/PCSave.cpp @@ -8,6 +8,8 @@ const char* _psGetUserFilesFolder(); +C_PcSave &PcSaveHelper = *(C_PcSave*)0x8E2C60; + void C_PcSave::SetSaveDirectory(const char *path) { diff --git a/src/save/PCSave.h b/src/save/PCSave.h index a11d6b86..c58a5c9e 100644 --- a/src/save/PCSave.h +++ b/src/save/PCSave.h @@ -36,3 +36,5 @@ public: bool PcClassSaveRoutine(int32 a2, uint8 *data, uint32 size); static void SetSaveDirectory(const char *path); }; + +extern C_PcSave &PcSaveHelper; |