From: Holger Schemel Date: Wed, 8 Feb 2023 11:54:28 +0000 (+0100) Subject: removed deriving Unix user data directory from program config file X-Git-Tag: 4.3.5.0~14 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=477d851989e252757c7d86b658078964f3dae9cb;p=rocksndiamonds.git removed deriving Unix user data directory from program config file --- diff --git a/src/main.c b/src/main.c index d6bc2d26..7f3fc819 100644 --- a/src/main.c +++ b/src/main.c @@ -7762,19 +7762,7 @@ static void InitProgramConfig(char *command_filename) // read default program config, if existing if (fileExists(config_filename)) - { - // if program config file exists, derive Unix user data directory from it - // (but only if the program config file is not generic "setup.conf" file) - if (!strEqual(getBaseNamePtr(config_filename), SETUP_FILENAME)) - { - userdata_basename = getBaseName(config_filename); - - if (strSuffix(userdata_basename, ".conf")) - userdata_basename[strlen(userdata_basename) - 5] = '\0'; - } - LoadSetupFromFilename(config_filename); - } // set program title from potentially redefined program title if (setup.internal.program_title != NULL &&