diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-29 10:44:33 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-29 10:44:33 +0200 |
commit | 1e78278b5ab56c3ecf9b550298081c42e71f1085 (patch) | |
tree | 99fbeb9bdcf3eeecc151d1b71ca2d39c9cc1c35d /src/save | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | Merge pull request #495 from Sergeanur/MoreLanguages (diff) | |
download | re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.tar re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.tar.gz re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.tar.bz2 re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.tar.lz re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.tar.xz re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.tar.zst re3-1e78278b5ab56c3ecf9b550298081c42e71f1085.zip |
Diffstat (limited to 'src/save')
-rw-r--r-- | src/save/PCSave.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp index 6f1b1b45..d3aeee26 100644 --- a/src/save/PCSave.cpp +++ b/src/save/PCSave.cpp @@ -3,6 +3,9 @@ #include "crossplatform.h" #include "FileMgr.h" +#ifdef MORE_LANGUAGES +#include "Game.h" +#endif #include "GenericGameStorage.h" #include "Messages.h" #include "PCSave.h" @@ -131,7 +134,12 @@ C_PcSave::PopulateSlotInfo() default: assert(0); } char date[70]; - sprintf(date, "%02d %s %04d %02d:%02d:%02d", st.wDay, UnicodeToAsciiForSaveLoad(TheText.Get(month)), st.wYear, st.wHour, st.wMinute, st.wSecond); +#ifdef MORE_LANGUAGES + if (CGame::japaneseGame) + sprintf(date, "%02d %02d %04d %02d:%02d:%02d", st.wDay, st.wMonth, st.wYear, st.wHour, st.wMinute, st.wSecond); + else +#endif // MORE_LANGUAGES + sprintf(date, "%02d %s %04d %02d:%02d:%02d", st.wDay, UnicodeToAsciiForSaveLoad(TheText.Get(month)), st.wYear, st.wHour, st.wMinute, st.wSecond); AsciiToUnicode(date, SlotSaveDate[i]); } else { |