Fix warning
This commit is contained in:
parent
31afb4d568
commit
3ceacf1001
|
@ -121,13 +121,13 @@ bool gameConfigInit(bool isMapper, int argc, char** argv)
|
||||||
configSetInt(&gGameConfig, GAME_CONFIG_MAPPER_KEY, GAME_CONFIG_SORT_SCRIPT_LIST_KEY, 0);
|
configSetInt(&gGameConfig, GAME_CONFIG_MAPPER_KEY, GAME_CONFIG_SORT_SCRIPT_LIST_KEY, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// SFALL: custom config file name.
|
// SFALL: Custom config file name.
|
||||||
char* configFileName = nullptr;
|
char* customConfigFileName = nullptr;
|
||||||
if (configGetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CONFIG_FILE, &configFileName)) {
|
configGetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CONFIG_FILE, &customConfigFileName);
|
||||||
if (configFileName == nullptr || *configFileName == '\0') {
|
|
||||||
configFileName = DEFAULT_GAME_CONFIG_FILE_NAME;
|
const char* configFileName = customConfigFileName != nullptr && *customConfigFileName != '\0'
|
||||||
}
|
? customConfigFileName
|
||||||
}
|
: DEFAULT_GAME_CONFIG_FILE_NAME;
|
||||||
|
|
||||||
// Make `fallout2.cfg` file path.
|
// Make `fallout2.cfg` file path.
|
||||||
char* executable = argv[0];
|
char* executable = argv[0];
|
||||||
|
|
Loading…
Reference in New Issue