Improve BetaComment handling (feature #4129)

pull/2653/head
Andrei Kortunov 4 years ago
parent a5289035e2
commit b6899a821b

@ -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

@ -1,10 +1,13 @@
#include "miscextensions.hpp"
#include <cstdlib>
#include <iomanip>
#include <components/compiler/opcodes.hpp>
#include <components/compiler/locals.hpp>
#include <components/debug/debuglog.hpp>
#include <components/interpreter/interpreter.hpp>
#include <components/interpreter/runtime.hpp>
#include <components/interpreter/opcodes.hpp>
@ -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(&currentTime), "%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());
}
};

Loading…
Cancel
Save