// 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 &&