1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 08:23:51 +00:00

Improve BetaComment handling (feature #4129)

This commit is contained in:
Andrei Kortunov 2020-01-03 08:45:53 +04:00
parent a5289035e2
commit b6899a821b
2 changed files with 11 additions and 0 deletions

View file

@ -196,6 +196,7 @@
Feature #3980: In-game option to disable controller Feature #3980: In-game option to disable controller
Feature #3999: Shift + Double Click should maximize/restore menu size Feature #3999: Shift + Double Click should maximize/restore menu size
Feature #4001: Toggle sneak controller shortcut Feature #4001: Toggle sneak controller shortcut
Feature #4129: Beta Comment to File
Feature #4209: Editor: Faction rank sub-table Feature #4209: Editor: Faction rank sub-table
Feature #4255: Handle broken RepairedOnMe script function Feature #4255: Handle broken RepairedOnMe script function
Feature #4316: Implement RaiseRank/LowerRank functions properly Feature #4316: Implement RaiseRank/LowerRank functions properly

View file

@ -1,10 +1,13 @@
#include "miscextensions.hpp" #include "miscextensions.hpp"
#include <cstdlib> #include <cstdlib>
#include <iomanip>
#include <components/compiler/opcodes.hpp> #include <components/compiler/opcodes.hpp>
#include <components/compiler/locals.hpp> #include <components/compiler/locals.hpp>
#include <components/debug/debuglog.hpp>
#include <components/interpreter/interpreter.hpp> #include <components/interpreter/interpreter.hpp>
#include <components/interpreter/runtime.hpp> #include <components/interpreter/runtime.hpp>
#include <components/interpreter/opcodes.hpp> #include <components/interpreter/opcodes.hpp>
@ -1222,6 +1225,11 @@ namespace MWScript
std::stringstream msg; 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: "; msg << "Content file: ";
if (!ptr.getCellRef().hasContentFile()) if (!ptr.getCellRef().hasContentFile())
@ -1263,6 +1271,8 @@ namespace MWScript
--arg0; --arg0;
} }
Log(Debug::Warning) << "\n" << msg.str();
runtime.getContext().report(msg.str()); runtime.getContext().report(msg.str());
} }
}; };