From 78f52629e4cdff046f4aabb8912927d2ba43d5cb Mon Sep 17 00:00:00 2001 From: fokkonaut <35420825+fokkonaut@users.noreply.github.com> Date: Fri, 19 Jul 2019 01:58:49 +0200 Subject: [PATCH] fix build --- src/engine/shared/config_variables.h | 2 ++ src/game/client/components/menus_settings.cpp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index 01c0c1db8..e7a8d527b 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -348,7 +348,9 @@ MACRO_CONFIG_STR(ClTimeoutCode, cl_timeout_code, 64, "", CFGFLAG_SAVE|CFGFLAG_CL MACRO_CONFIG_STR(ClDummyTimeoutCode, cl_dummy_timeout_code, 64, "", CFGFLAG_SAVE|CFGFLAG_CLIENT, "Dummy Timeout code to use") MACRO_CONFIG_STR(ClTimeoutSeed, cl_timeout_seed, 64, "", CFGFLAG_SAVE|CFGFLAG_CLIENT, "Timeout seed") MACRO_CONFIG_STR(ClInputFifo, cl_input_fifo, 128, "", CFGFLAG_SAVE|CFGFLAG_CLIENT, "Fifo file to use as input for client console") +#if defined(CONF_FAMILY_WINDOWS) MACRO_CONFIG_INT(ClShowConsole, cl_show_console, 0, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Show console window (Windows only)") +#endif MACRO_CONFIG_INT(InpJoystick, inp_joystick, 0, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Try to use a joystick as input") MACRO_CONFIG_INT(ClConfigVersion, cl_config_version, 0, 0, 0, CFGFLAG_CLIENT|CFGFLAG_SAVE, "The config version. Helps newer clients fix bugs with older configs.") diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index c4bee382f..9ee30176f 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -68,10 +68,12 @@ bool CMenusKeyBinder::OnInput(IInput::CEvent Event) void CMenus::RenderSettingsGeneral(CUIRect MainView) { - char aBuf[128]; +#if defined(CONF_FAMILY_WINDOWS) bool CheckSettings = false; static int s_ClShowConsole = g_Config.m_ClShowConsole; +#endif + char aBuf[128]; CUIRect Label, Button, Left, Right, Game, Client, AutoReconnect; MainView.HSplitTop(180.0f, &Game, &Client); Client.HSplitTop(160.0f, &Client, &AutoReconnect);