[Scummvm-git-logs] scummvm master -> 76a9a025dc13bd55548906e1faa4ede579ec80ed
athrxx
athrxx at scummvm.org
Tue Aug 4 15:11:05 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
76a9a025dc KYRA: Automatically suggest current time and date when adding a new savegame (#2399)
Commit: 76a9a025dc13bd55548906e1faa4ede579ec80ed
https://github.com/scummvm/scummvm/commit/76a9a025dc13bd55548906e1faa4ede579ec80ed
Author: neuromancer (neuromancer at users.noreply.github.com)
Date: 2020-08-04T17:11:01+02:00
Commit Message:
KYRA: Automatically suggest current time and date when adding a new savegame (#2399)
This small quality-of-life change suggests a newsave name with the current time and date for the Land of Lore games. This allows to play the games with less usage of a keyboard (e.g. only mouse or remapping keys to a gamepad).
Changed paths:
engines/kyra/gui/gui_lol.cpp
diff --git a/engines/kyra/gui/gui_lol.cpp b/engines/kyra/gui/gui_lol.cpp
index c1d5752c76..42b22d6dd2 100644
--- a/engines/kyra/gui/gui_lol.cpp
+++ b/engines/kyra/gui/gui_lol.cpp
@@ -2673,6 +2673,12 @@ int GUI_LoL::clickedSaveMenu(Button *button) {
_saveDescription[0] = 0;
if (_saveMenu.item[-s - 2].saveSlot != -3)
strcpy(_saveDescription, _saveMenu.item[-s - 2].itemString);
+ else {
+ TimeDate td;
+ g_system->getTimeAndDate(td);
+ Common::String ts = Common::String::format("%d:%d:%d on %d/%d/%d", td.tm_hour, td.tm_min, td.tm_sec, td.tm_mday, td.tm_mon + 1, td.tm_year + 1900);
+ strcpy(_saveDescription, ts.c_str());
+ }
return 1;
}
More information about the Scummvm-git-logs
mailing list