From 06e58054284e0786cabd3e2f110e3f10a2548b3a Mon Sep 17 00:00:00 2001 From: sla-ppy Date: Fri, 24 May 2024 12:12:20 +0200 Subject: [PATCH 1/2] change version cmd behaviour --- src/TConsole.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 9c6561e..1d8e773 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -26,7 +26,9 @@ #include "TLuaEngine.h" #include +#include #include +#include #include static inline bool StringStartsWith(const std::string& What, const std::string& StartsWith) { @@ -273,7 +275,25 @@ void TConsole::Command_Version(const std::string& cmd, const std::vector& args) { From 1b60e89f266e6e5a2029cdafe2752b218cc73ca5 Mon Sep 17 00:00:00 2001 From: sla-ppy Date: Fri, 24 May 2024 12:31:01 +0200 Subject: [PATCH 2/2] add lua info on LuaEngine startup --- src/TLuaEngine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TLuaEngine.cpp b/src/TLuaEngine.cpp index 4493158..c2f930c 100644 --- a/src/TLuaEngine.cpp +++ b/src/TLuaEngine.cpp @@ -66,6 +66,7 @@ void TLuaEngine::operator()() { RegisterThread("LuaEngine"); Application::SetSubsystemStatus("LuaEngine", Application::Status::Good); // lua engine main thread + beammp_infof("Lua v{}.{}.{}", LUA_VERSION_MAJOR, LUA_VERSION_MINOR, LUA_VERSION_RELEASE); CollectAndInitPlugins(); // now call all onInit's auto Futures = TriggerEvent("onInit", "");