summaryrefslogtreecommitdiffstats
path: root/src/save/PCSave.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-29 10:26:36 +0200
committerGitHub <noreply@github.com>2020-04-29 10:26:36 +0200
commit4e630a1a38246a9dd909261cbf5fa598d43140e8 (patch)
treed12b2e77241f79bb143e91bac7e669ae96ea229b /src/save/PCSave.cpp
parentMerge pull request #498 from Sergeanur/premakestuff (diff)
parentFixes (diff)
downloadre3-4e630a1a38246a9dd909261cbf5fa598d43140e8.tar
re3-4e630a1a38246a9dd909261cbf5fa598d43140e8.tar.gz
re3-4e630a1a38246a9dd909261cbf5fa598d43140e8.tar.bz2
re3-4e630a1a38246a9dd909261cbf5fa598d43140e8.tar.lz
re3-4e630a1a38246a9dd909261cbf5fa598d43140e8.tar.xz
re3-4e630a1a38246a9dd909261cbf5fa598d43140e8.tar.zst
re3-4e630a1a38246a9dd909261cbf5fa598d43140e8.zip
Diffstat (limited to 'src/save/PCSave.cpp')
-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 {