Fix: fix crash on plugin start with no spdlog loaded

This commit is contained in:
SlynxCZ 2026-01-14 17:36:03 +04:00
parent 4b95ba9d36
commit 65ee9c0ce2
5 changed files with 6 additions and 9 deletions

View file

@ -66,7 +66,9 @@ namespace RayTracePlugin
if (!shared::g_pGameResourceServiceServer)
return false;
Log::Init();
Tasks::Init();
auto gamedata_path = std::string(Paths::GetRootDirectory() + "/gamedata.json");
shared::g_pGameConfig = new CGameConfig(gamedata_path);
char conf_error[255] = "";

View file

@ -20,7 +20,7 @@ namespace RayTracePlugin::Paths {
return gameDirectory;
}
inline std::string GetRootDirectory() { return GameDirectory() + "/addons/RayTracePlugin"; }
inline std::string GetRootDirectory() { return GameDirectory() + "/addons/RayTrace"; }
inline std::string EnginePath() { return GameDirectory() + "../bin/linuxsteamrt64/libengine2.so"; }
inline std::string Tier0Path() { return GameDirectory() + "../bin/linuxsteamrt64/libtier0.so"; }
inline std::string ServerPath() { return GameDirectory() + "/bin/linuxsteamrt64/libserver.so"; }