[Scummvm-git-logs] scummvm master -> 484cfc564464ac4ffe47b1354fec3dd6f8bb5f44
orgads
orgads at gmail.com
Thu Jul 8 21:08:08 UTC 2021
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:
484cfc5644 EVENTRECORDER: Fix date on initial name
Commit: 484cfc564464ac4ffe47b1354fec3dd6f8bb5f44
https://github.com/scummvm/scummvm/commit/484cfc564464ac4ffe47b1354fec3dd6f8bb5f44
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-07-09T00:07:55+03:00
Commit Message:
EVENTRECORDER: Fix date on initial name
Month was off by 1.
Changed paths:
gui/EventRecorder.cpp
gui/recorderdialog.cpp
diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp
index b015577543..d348a781a3 100644
--- a/gui/EventRecorder.cpp
+++ b/gui/EventRecorder.cpp
@@ -605,7 +605,7 @@ void EventRecorder::setFileHeader() {
setAuthor("Unknown Author");
}
if (_name.empty()) {
- g_eventRec.setName(Common::String::format("%.2d.%.2d.%.4d ", t.tm_mday, t.tm_mon, 1900 + t.tm_year) + desc.description);
+ g_eventRec.setName(Common::String::format("%.2d.%.2d.%.4d ", t.tm_mday, t.tm_mon + 1, 1900 + t.tm_year) + desc.description);
}
_playbackFile->getHeader().author = _author;
_playbackFile->getHeader().notes = _desc;
diff --git a/gui/recorderdialog.cpp b/gui/recorderdialog.cpp
index 19a83c8959..513ecbe65c 100644
--- a/gui/recorderdialog.cpp
+++ b/gui/recorderdialog.cpp
@@ -168,7 +168,7 @@ void RecorderDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
TimeDate t;
QualifiedGameDescriptor desc = EngineMan.findTarget(_target);
g_system->getTimeAndDate(t);
- EditRecordDialog editDlg(_("Unknown Author"), Common::String::format("%.2d.%.2d.%.4d ", t.tm_mday, t.tm_mon, 1900 + t.tm_year) + desc.description, "");
+ EditRecordDialog editDlg(_("Unknown Author"), Common::String::format("%.2d.%.2d.%.4d ", t.tm_mday, t.tm_mon + 1, 1900 + t.tm_year) + desc.description, "");
if (editDlg.runModal() != kOKCmd) {
return;
}
More information about the Scummvm-git-logs
mailing list