From 2ca0af51cb0c26f890988d24ad36a15fc61c8cb7 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sat, 20 Mar 2021 20:32:26 +0200 Subject: [PATCH] Update Events.inc --- module/Core/Events.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/Core/Events.inc b/module/Core/Events.inc index 5b5ef78f..51c3c44c 100644 --- a/module/Core/Events.inc +++ b/module/Core/Events.inc @@ -1690,6 +1690,12 @@ void Core::EmitScriptLoaded() const SQMOD_CO_EV_TRACEBACK("[TRACE<] Core::ScriptLoaded()") (*mOnScriptLoaded.first)(); SQMOD_CO_EV_TRACEBACK("[TRACE>] Core::ScriptLoaded") +#ifdef VCMP_ENABLE_OFFICIAL + if (IsOfficial()) + { + ExecuteLegacyEvent(m_VM, _SC("onScriptLoad")); + } +#endif } // ------------------------------------------------------------------------------------------------