mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Improve plugin debugging code
Log using sdk loggers, warn if it failed to load.
This commit is contained in:
parent
dcf05a0adf
commit
e9f907638f
@ -118,7 +118,9 @@ void CModAppSystemGroup::InitPluginSystem(CModAppSystemGroup* pModAppSystemGroup
|
||||
for (auto& it : g_pPluginSystem->GetPluginInstances())
|
||||
{
|
||||
if (g_pPluginSystem->LoadPluginInstance(it))
|
||||
spdlog::info("Load PLUGIN SUCCESS\n");
|
||||
DevMsg(eDLL_T::ENGINE, "Loaded plugin: '%s'\n", it.m_svPluginName.c_str());
|
||||
else
|
||||
Warning(eDLL_T::ENGINE, "Failed loading plugin: '%s'\n", it.m_svPluginName.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user