From 4724f5d18cbfa9cc8e94e082740136144bad221f Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 24 Aug 2012 18:55:06 +0000 Subject: [PATCH] On Linux build without startup GUI, don't save ModDir to config. git-svn-id: https://svn.eduke32.com/eduke32@2962 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/config.c b/polymer/eduke32/source/config.c index f186c40e9..5c1645b45 100644 --- a/polymer/eduke32/source/config.c +++ b/polymer/eduke32/source/config.c @@ -866,9 +866,11 @@ void CONFIG_WriteSetup(uint32_t flags) SCRIPT_PutString(ud.config.scripthandle, "Setup","SelectedGRP",&g_grpNamePtr[0]); + // XXX: should be "if compiled without startup GUI" +#if !defined __linux || defined HAVE_GTK2 if (g_noSetup == 0) SCRIPT_PutString(ud.config.scripthandle, "Setup","ModDir",&g_modDir[0]); - +#endif // exit early after only updating the values that can be changed from the startup window if (flags & 1) {