summaryrefslogtreecommitdiffstats
path: root/src/save/PCSave.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-26 22:49:24 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-27 21:41:09 +0200
commitfe353a7cc9831a09026842106bd3ff0fdb3242b4 (patch)
tree61e573e5fb4d80ba65f7a5e82cb08a280e3b863b /src/save/PCSave.cpp
parentMerge branch 'master' into MoreLanguages (diff)
downloadre3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.tar
re3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.tar.gz
re3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.tar.bz2
re3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.tar.lz
re3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.tar.xz
re3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.tar.zst
re3-fe353a7cc9831a09026842106bd3ff0fdb3242b4.zip
Diffstat (limited to '')
-rw-r--r--src/save/PCSave.cpp10
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 {