From: Holger Schemel Date: Wed, 8 Feb 2023 11:55:23 +0000 (+0100) Subject: renamed variable X-Git-Tag: 4.3.5.0~13 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a1b595c8791394699e73f35c30770c4afd61abbd;p=rocksndiamonds.git renamed variable --- diff --git a/src/main.c b/src/main.c index 7f3fc819..782a2969 100644 --- a/src/main.c +++ b/src/main.c @@ -7756,8 +7756,8 @@ static void InitProgramConfig(char *command_filename) char *program_title = PROGRAM_TITLE_STRING; char *program_icon_file = PROGRAM_ICON_FILENAME; char *program_version = getProgramRealVersionString(); + char *program_basename = getBaseNameNoSuffix(command_filename); char *config_filename = getProgramConfigFilename(command_filename); - char *userdata_basename = getBaseNameNoSuffix(command_filename); char *userdata_subdir; // read default program config, if existing @@ -7782,7 +7782,7 @@ static void InitProgramConfig(char *command_filename) #if defined(PLATFORM_WINDOWS) || defined(PLATFORM_MAC) || defined(PLATFORM_EMSCRIPTEN) userdata_subdir = program_title; #elif defined(PLATFORM_UNIX) - userdata_subdir = getStringCat2(".", userdata_basename); + userdata_subdir = getStringCat2(".", program_basename); #else userdata_subdir = USERDATA_DIRECTORY_OTHER; #endif