[Scummvm-git-logs] scummvm master -> 4151268e31440b9a5fa9378a9c1bc18074eb0b58
athrxx
athrxx at scummvm.org
Wed Aug 5 20:14:22 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:
4151268e31 KYRA: (LOL) - enhance auto save description
Commit: 4151268e31440b9a5fa9378a9c1bc18074eb0b58
https://github.com/scummvm/scummvm/commit/4151268e31440b9a5fa9378a9c1bc18074eb0b58
Author: athrxx (athrxx at scummvm.org)
Date: 2020-08-05T22:12:49+02:00
Commit Message:
KYRA: (LOL) - enhance auto save description
(followup to 48c2cb30)
The level numbers aren't really helpful, since they don't get used anywhere in the game.
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 08405fc2c0..7b2b485217 100644
--- a/engines/kyra/gui/gui_lol.cpp
+++ b/engines/kyra/gui/gui_lol.cpp
@@ -2677,8 +2677,13 @@ int GUI_LoL::clickedSaveMenu(Button *button) {
TimeDate td;
g_system->getTimeAndDate(td);
// Skip character name for Japanese to prevent garbage rendering (the save description is rendered in the non-SJIS default font).
- Common::String ts = (_vm->gameFlags().lang != Common::JA_JPN) ? Common::String::format("%-7s / ", _vm->_characters[0].name) : "";
- ts += Common::String::format("Level %02d / %02d-%02d-%02d - %02d:%02d:%02d", _vm->_currentLevel, td.tm_mday, td.tm_mon + 1, td.tm_year + 1900, td.tm_hour, td.tm_min, td.tm_sec);
+ Common::String ts = (_vm->gameFlags().lang != Common::JA_JPN) ? Common::String::format("%s / ", _vm->_characters[0].name) : "";
+ Common::String lvl1 = Common::String(_vm->_lastBlockDataFile).substr(0, 1);
+ Common::String lvl2 = Common::String(_vm->_lastBlockDataFile).substr(1);
+ lvl1.toUppercase();
+ lvl2.toLowercase();
+ ts = ts + lvl1 + lvl2;
+ ts += Common::String::format(" / %02d-%02d-%02d - %02d:%02d:%02d", td.tm_mday, td.tm_mon + 1, td.tm_year + 1900, td.tm_hour, td.tm_min, td.tm_sec);
strcpy(_saveDescription, ts.c_str());
}
More information about the Scummvm-git-logs
mailing list