aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTarek Soliman2011-09-21 21:47:51 -0500
committerTarek Soliman2011-09-23 22:06:19 -0500
commit7b68952726724cfc35a0d9e98b485e8c615907cb (patch)
tree7743592d111065e35061a3d6c502278cb1d9ab66 /engines
parentfbb6af0359d0b9607be231aa943190760b478f73 (diff)
downloadscummvm-rg350-7b68952726724cfc35a0d9e98b485e8c615907cb.tar.gz
scummvm-rg350-7b68952726724cfc35a0d9e98b485e8c615907cb.tar.bz2
scummvm-rg350-7b68952726724cfc35a0d9e98b485e8c615907cb.zip
SCI: change savegame default description day format to YYYY.MM.DD
... and make it optional subject to USE_SAVEGAME_TIMESTAMP
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kfile.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 1bd6754ca5..0c73125bdb 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -578,11 +578,15 @@ reg_t kSaveGame(EngineState *s, int argc, reg_t *argv) {
game_description = dialog->getResultString();
if (game_description.empty()) {
// create our own description for the saved game, the user didnt enter it
+ #if defined(USE_SAVEGAME_TIMESTAMP)
TimeDate curTime;
g_system->getTimeAndDate(curTime);
curTime.tm_year += 1900; // fixup year
curTime.tm_mon++; // fixup month
- game_description = Common::String::format("%02d.%02d.%04d / %02d:%02d:%02d", curTime.tm_mday, curTime.tm_mon, curTime.tm_year, curTime.tm_hour, curTime.tm_min, curTime.tm_sec);
+ game_description = Common::String::format("%04d.%02d.%02d / %02d:%02d:%02d", curTime.tm_year, curTime.tm_mon, curTime.tm_mday, curTime.tm_hour, curTime.tm_min, curTime.tm_sec);
+ #else
+ game_description = Common::String::format("Save %d", savegameId + 1);
+ #endif
}
delete dialog;
g_sci->_soundCmd->pauseAll(false); // unpause music ( we can't have it paused during save)