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
This commit is contained in:
helixhorned 2012-08-24 18:55:06 +00:00
parent 9abc415a24
commit 4724f5d18c

View file

@ -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)
{