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

Update the server initialize traceback.

Place the closing traceback before the success or failure message.
This commit is contained in:
Sandu Liviu Catalin 2019-06-02 18:19:39 +03:00
parent 3c37417acc
commit 4f3c4dac48

View File

@ -94,16 +94,17 @@ static uint8_t OnServerInitialise(void)
if (Core::Get().Execute()) if (Core::Get().Execute())
{ {
Core::Get().EmitServerStartup(); Core::Get().EmitServerStartup();
SQMOD_SV_EV_TRACEBACK("[TRACE>] OnServerInitialise")
// Add a notification to let the user know the plug-in was loaded // Add a notification to let the user know the plug-in was loaded
OutputMessage("The Squirrel plug-in was loaded successfully"); OutputMessage("The Squirrel plug-in was loaded successfully");
} }
else else
{ {
SQMOD_SV_EV_TRACEBACK("[TRACE>] OnServerInitialise")
OutputError("Unable to load the plug-in resources properly"); OutputError("Unable to load the plug-in resources properly");
// Failed to initialize // Failed to initialize
return SQMOD_FAILURE; return SQMOD_FAILURE;
} }
SQMOD_SV_EV_TRACEBACK("[TRACE>] OnServerInitialise")
} }
SQMOD_CATCH_EVENT_EXCEPTION(OnServerInitialise) SQMOD_CATCH_EVENT_EXCEPTION(OnServerInitialise)
// See if a reload was requested // See if a reload was requested