diff options
author | aap <aap@papnet.eu> | 2020-04-23 22:10:46 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-23 22:10:46 +0200 |
commit | 6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a (patch) | |
tree | f98c56e1e5428a9cd9dd6c26369a3358727db78b /src/save/PCSave.cpp | |
parent | fixed extra directory issues (diff) | |
parent | removed fix that made no sense (diff) | |
download | re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.tar re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.tar.gz re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.tar.bz2 re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.tar.lz re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.tar.xz re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.tar.zst re3-6467e2003a0fc9f6bb5f8b86dd699b674f5e5b9a.zip |
Diffstat (limited to 'src/save/PCSave.cpp')
-rw-r--r-- | src/save/PCSave.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp index 46185850..6f1b1b45 100644 --- a/src/save/PCSave.cpp +++ b/src/save/PCSave.cpp @@ -1,5 +1,6 @@ -#define WITHWINDOWS #include "common.h" +#define USEALTERNATIVEWINFUNCS +#include "crossplatform.h" #include "FileMgr.h" #include "GenericGameStorage.h" @@ -94,7 +95,7 @@ C_PcSave::PopulateSlotInfo() struct { int size; wchar FileName[24]; - _SYSTEMTIME SaveDateTime; + SYSTEMTIME SaveDateTime; } header; sprintf(savename, "%s%i%s", DefaultPCSaveFileName, i + 1, ".b"); int file = CFileMgr::OpenFile(savename, "rb"); @@ -110,8 +111,8 @@ C_PcSave::PopulateSlotInfo() } if (Slots[i + 1] == SLOT_OK) { if (CheckDataNotCorrupt(i, savename)) { - _SYSTEMTIME st; - memcpy(&st, &header.SaveDateTime, sizeof(_SYSTEMTIME)); + SYSTEMTIME st; + memcpy(&st, &header.SaveDateTime, sizeof(SYSTEMTIME)); const char *month; switch (st.wMonth) { |