Add CitiesLimitFix into sFall config with default=true
This commit is contained in:
parent
ec0685ea19
commit
252d7fe83e
|
@ -61,6 +61,7 @@ bool sfallConfigInit(int argc, char** argv)
|
||||||
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_VERSION_STRING, "");
|
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_VERSION_STRING, "");
|
||||||
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CONFIG_FILE, "");
|
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CONFIG_FILE, "");
|
||||||
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_PATCH_FILE, "");
|
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_PATCH_FILE, "");
|
||||||
|
configSetBool(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CITIES_LIMIT_FIX, true);
|
||||||
|
|
||||||
configSetString(&gSfallConfig, SFALL_CONFIG_SCRIPTS_KEY, SFALL_CONFIG_INI_CONFIG_FOLDER, "");
|
configSetString(&gSfallConfig, SFALL_CONFIG_SCRIPTS_KEY, SFALL_CONFIG_INI_CONFIG_FOLDER, "");
|
||||||
configSetString(&gSfallConfig, SFALL_CONFIG_SCRIPTS_KEY, SFALL_CONFIG_GLOBAL_SCRIPT_PATHS, "");
|
configSetString(&gSfallConfig, SFALL_CONFIG_SCRIPTS_KEY, SFALL_CONFIG_GLOBAL_SCRIPT_PATHS, "");
|
||||||
|
@ -76,7 +77,10 @@ bool sfallConfigInit(int argc, char** argv)
|
||||||
strcpy(path, SFALL_CONFIG_FILE_NAME);
|
strcpy(path, SFALL_CONFIG_FILE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
configRead(&gSfallConfig, path, false);
|
bool isSfallConfigExists = configRead(&gSfallConfig, path, false);
|
||||||
|
if (!isSfallConfigExists){
|
||||||
|
configSetBool(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CITIES_LIMIT_FIX, false);
|
||||||
|
}
|
||||||
|
|
||||||
configParseCommandLineArguments(&gSfallConfig, argc, argv);
|
configParseCommandLineArguments(&gSfallConfig, argc, argv);
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,8 @@ namespace fallout {
|
||||||
#define SFALL_CONFIG_VERSION_STRING "VersionString"
|
#define SFALL_CONFIG_VERSION_STRING "VersionString"
|
||||||
#define SFALL_CONFIG_CONFIG_FILE "ConfigFile"
|
#define SFALL_CONFIG_CONFIG_FILE "ConfigFile"
|
||||||
#define SFALL_CONFIG_PATCH_FILE "PatchFile"
|
#define SFALL_CONFIG_PATCH_FILE "PatchFile"
|
||||||
|
#define SFALL_CONFIG_CITIES_LIMIT_FIX "CitiesLimitFix"
|
||||||
|
|
||||||
|
|
||||||
#define SFALL_CONFIG_BURST_MOD_DEFAULT_CENTER_MULTIPLIER 1
|
#define SFALL_CONFIG_BURST_MOD_DEFAULT_CENTER_MULTIPLIER 1
|
||||||
#define SFALL_CONFIG_BURST_MOD_DEFAULT_CENTER_DIVISOR 3
|
#define SFALL_CONFIG_BURST_MOD_DEFAULT_CENTER_DIVISOR 3
|
||||||
|
|
Loading…
Reference in New Issue