From b6899a821b511a286ef93896c4af150a5018fbfd Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 3 Jan 2020 08:45:53 +0400 Subject: [PATCH] Improve BetaComment handling (feature #4129) --- CHANGELOG.md | 1 + apps/openmw/mwscript/miscextensions.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67a2632b93..f58ce5789b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -196,6 +196,7 @@ Feature #3980: In-game option to disable controller Feature #3999: Shift + Double Click should maximize/restore menu size Feature #4001: Toggle sneak controller shortcut + Feature #4129: Beta Comment to File Feature #4209: Editor: Faction rank sub-table Feature #4255: Handle broken RepairedOnMe script function Feature #4316: Implement RaiseRank/LowerRank functions properly diff --git a/apps/openmw/mwscript/miscextensions.cpp b/apps/openmw/mwscript/miscextensions.cpp index d40ad769d6..ada1af59e0 100644 --- a/apps/openmw/mwscript/miscextensions.cpp +++ b/apps/openmw/mwscript/miscextensions.cpp @@ -1,10 +1,13 @@ #include "miscextensions.hpp" #include +#include #include #include +#include + #include #include #include @@ -1222,6 +1225,11 @@ namespace MWScript std::stringstream msg; + msg << "Report time: "; + + std::time_t currentTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); + msg << std::put_time(std::gmtime(¤tTime), "%d.%m.%Y %T UTC") << std::endl; + msg << "Content file: "; if (!ptr.getCellRef().hasContentFile()) @@ -1263,6 +1271,8 @@ namespace MWScript --arg0; } + Log(Debug::Warning) << "\n" << msg.str(); + runtime.getContext().report(msg.str()); } };