Core: fix linker error for dedicated server builds

ImguiSystem should not be compiled for dedicated server builds.
This commit is contained in:
Kawe Mazidjatari 2024-11-17 13:54:57 +01:00
parent 72c71fac8b
commit 874314ee1c

View File

@ -18,7 +18,9 @@
#include "mathlib/mathlib.h"
#include "launcher/launcher.h"
#include "protobuf/stubs/common.h"
#ifndef DEDICATED
#include "gameui/imgui_system.h"
#endif // !DEDICATED
#ifndef DEDICATED
#define SDK_DEFAULT_CFG "cfg/system/startup_default.cfg"
@ -125,7 +127,9 @@ void SDK_Init()
s_bConsoleInitialized = Console_Init(bAnsiColor);
}
#ifndef DEDICATED
ImguiSystem()->SetEnabled(!CommandLine()->CheckParm("-noimgui"));
#endif // !DEDICATED
SpdLog_Init(bAnsiColor);
Show_Emblem();