diff --git a/module/Core.cpp b/module/Core.cpp index 02056dfb..1f6c8afc 100644 --- a/module/Core.cpp +++ b/module/Core.cpp @@ -444,7 +444,7 @@ bool Core::Execute() cLogDbg(m_Verbosity >= 1, "Signaling outside plug-ins that the API is being registered"); // 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 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"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xDEADC0DE, ""); + _Func->SendPluginCommand(SQMOD_TERMINATE_CMD, ""); } 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"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xBAAAAAAD, ""); + _Func->SendPluginCommand(SQMOD_CLOSING_CMD, ""); // Release any callbacks from the logger Logger::Get().Release(); 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"); // Tell modules to do their monkey business - _Func->SendPluginCommand(0xDEADBEAF, ""); + _Func->SendPluginCommand(SQMOD_RELEASED_CMD, ""); } OutputMessage("Squirrel plug-in was successfully terminated");