1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Core.cpp

This commit is contained in:
Sandu Liviu Catalin 2023-03-05 17:00:39 +02:00
parent bc1fc1d245
commit 015047a935

View File

@ -444,7 +444,7 @@ bool Core::Execute()
cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins that the API is being registered"); cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins that the API is being registered");
// Tell modules to do their monkey business // Tell modules to do their monkey business
_Func->SendPluginCommand(0xDEADBABE, ""); _Func->SendPluginCommand(SQMOD_LOAD_CMD, "");
// Load pending scripts while we're in the bounds of the allowed recursiveness // Load pending scripts while we're in the bounds of the allowed recursiveness
for (unsigned levels = 0; !m_PendingScripts.empty() && (levels < 8); ++levels) for (unsigned levels = 0; !m_PendingScripts.empty() && (levels < 8); ++levels)
@ -514,7 +514,7 @@ void Core::Terminate(bool shutdown)
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 // Tell modules to do their monkey business
_Func->SendPluginCommand(0xDEADC0DE, ""); _Func->SendPluginCommand(SQMOD_TERMINATE_CMD, "");
} }
cLogDbg(m_Verbosity >= 1, "Clearing the entity containers"); cLogDbg(m_Verbosity >= 1, "Clearing the entity containers");
@ -599,7 +599,7 @@ void Core::Terminate(bool shutdown)
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 // Tell modules to do their monkey business
_Func->SendPluginCommand(0xBAAAAAAD, ""); _Func->SendPluginCommand(SQMOD_CLOSING_CMD, "");
// Release any callbacks from the logger // Release any callbacks from the logger
Logger::Get().Release(); Logger::Get().Release();
cLogDbg(m_Verbosity >= 2, "Closing Virtual Machine"); cLogDbg(m_Verbosity >= 2, "Closing Virtual Machine");
@ -632,7 +632,7 @@ void Core::Terminate(bool shutdown)
cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins the virtual machine was closed"); cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins the virtual machine was closed");
// Tell modules to do their monkey business // Tell modules to do their monkey business
_Func->SendPluginCommand(0xDEADBEAF, ""); _Func->SendPluginCommand(SQMOD_RELEASED_CMD, "");
} }
OutputMessage("Squirrel plug-in was successfully terminated"); OutputMessage("Squirrel plug-in was successfully terminated");