From 4704f6a67d4884636f712101e37b53e7aa6495ef Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 5 Feb 2021 14:25:53 +0200 Subject: [PATCH] Disable traces of legacy functionality. --- module/Core.cpp | 16 ++++++++-------- module/Main.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/module/Core.cpp b/module/Core.cpp index d366f635..8d7a9948 100644 --- a/module/Core.cpp +++ b/module/Core.cpp @@ -406,9 +406,9 @@ bool Core::Execute() m_LockPostLoadSignal = false; m_LockUnloadSignal = false; - cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins to register their API"); + //cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins to register their API"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xDEADBABE, ""); + //_Func->SendPluginCommand(0xDEADBABE, ""); // Load pending scripts while we're in the bounds of the allowed recursiveness for (unsigned levels = 0; !m_PendingScripts.empty() && (levels < 8); ++levels) @@ -475,9 +475,9 @@ void Core::Terminate(bool shutdown) // Clear the callbacks ResetSignalPair(mOnUnload); - cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins to release their resources"); + //cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins to release their resources"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xDEADC0DE, ""); + //_Func->SendPluginCommand(0xDEADC0DE, ""); } cLogDbg(m_Verbosity >= 1, "Clearing the entity containers"); // Release all entity resources by clearing the containers @@ -537,17 +537,17 @@ void Core::Terminate(bool shutdown) HSQUIRRELVM sq_vm = m_VM; m_VM = nullptr; - cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins the virtual machine is closing"); + //cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins the virtual machine is closing"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xBAAAAAAD, ""); + //_Func->SendPluginCommand(0xBAAAAAAD, ""); // Release any callbacks from the logger Logger::Get().Release(); // Attempt to close the VM sq_close(sq_vm); - cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins to release the virtual machine"); + //cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins to release the virtual machine"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xDEADBEAF, ""); + //_Func->SendPluginCommand(0xDEADBEAF, ""); } OutputMessage("Squirrel plug-in was successfully terminated"); diff --git a/module/Main.cpp b/module/Main.cpp index 2677674a..05b9a2fb 100644 --- a/module/Main.cpp +++ b/module/Main.cpp @@ -89,7 +89,7 @@ static uint8_t OnServerInitialise() { SQMOD_SV_EV_TRACEBACK("[TRACE<] OnServerInitialise") // Signal outside plug-ins to do fetch our proxies - _Func->SendPluginCommand(0xDABBAD00, "%d", 1); + //_Func->SendPluginCommand(0xDABBAD00, "%d", 1); // Attempt to load the module core if (Core::Get().Execute()) {