diff options
author | Eugene Sandulenko | 2011-09-30 10:57:04 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2011-09-30 10:57:04 -0700 |
commit | b4e6962d5d2bd910a1e26911feec7aa67c185b26 (patch) | |
tree | d3978b687c9c500b0795cd7785d196020cea7881 /engines/sci | |
parent | a7f26eb1591dcd50f7ce4ee8485eca6fbbd9a145 (diff) | |
parent | 7c8891fed4c439c365c05bb64968df3ee41bae87 (diff) | |
download | scummvm-rg350-b4e6962d5d2bd910a1e26911feec7aa67c185b26.tar.gz scummvm-rg350-b4e6962d5d2bd910a1e26911feec7aa67c185b26.tar.bz2 scummvm-rg350-b4e6962d5d2bd910a1e26911feec7aa67c185b26.zip |
Merge pull request #88 from tsoliman/savegame-timestamp-rebase
ENGINES: make the default savegame description be the timestamp
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 6 |
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) |