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

Update Events.inc

This commit is contained in:
Sandu Liviu Catalin 2021-03-20 20:32:26 +02:00
parent 8985866060
commit 2ca0af51cb

View File

@ -1690,6 +1690,12 @@ void Core::EmitScriptLoaded() const
SQMOD_CO_EV_TRACEBACK("[TRACE<] Core::ScriptLoaded()") SQMOD_CO_EV_TRACEBACK("[TRACE<] Core::ScriptLoaded()")
(*mOnScriptLoaded.first)(); (*mOnScriptLoaded.first)();
SQMOD_CO_EV_TRACEBACK("[TRACE>] Core::ScriptLoaded") SQMOD_CO_EV_TRACEBACK("[TRACE>] Core::ScriptLoaded")
#ifdef VCMP_ENABLE_OFFICIAL
if (IsOfficial())
{
ExecuteLegacyEvent(m_VM, _SC("onScriptLoad"));
}
#endif
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------