capitization from cfg to Cfg in config lookups

This commit is contained in:
lambdatiger 2024-01-17 20:48:27 -06:00
parent da1d184009
commit 183d9f0ac6
3 changed files with 6 additions and 8 deletions

View File

@ -6,7 +6,7 @@
* shouldFrag to cull non-fragmenting rounds. * shouldFrag to cull non-fragmenting rounds.
* *
* Arguments: * Arguments:
* 0: Display rounds that will never frag (power < 5) <BOOL> (default: false) * 0: Display rounds that will never frag (power < 5). <BOOL> (default: false)
* *
* Return Value: * Return Value:
* None * None
@ -17,11 +17,9 @@
* Public: No * Public: No
*/ */
params [ params [["_logAll", false, [false]]];
["_logAll", false, [false]]
];
private _allAmmoConfigs = configProperties [configFile >> "cfgAmmo", "isClass _x && !('ace_frag' in configName _x)", true]; private _allAmmoConfigs = configProperties [configFile >> "CfgAmmo", "isClass _x && !('ace_frag' in configName _x)", true];
private _processedCfgAmmos = []; private _processedCfgAmmos = [];
private _nPrinted = 0; private _nPrinted = 0;

View File

@ -8,7 +8,7 @@
* on the surface hit. * on the surface hit.
* *
* Arguments: * Arguments:
* 0: surfacetype <STRING> - either a cfgSurfaces path .bisurf filepath * 0: surfacetype <STRING> - either a CfgSurfaces path .bisurf filepath
* *
* Return Value: * Return Value:
* _material <STRING> - Material categories as expanded on in line 44 below * _material <STRING> - Material categories as expanded on in line 44 below
@ -34,7 +34,7 @@ if (isClass _surfaceConfig) then {
if (_material isEqualTo "" || {_material isEqualTo "empty"}) then { if (_material isEqualTo "" || {_material isEqualTo "empty"}) then {
_material = getText (_surfaceConfig >> "soundhit"); _material = getText (_surfaceConfig >> "soundhit");
}; };
} else { // Messy way when a surface isn't added to cfgSurfaces } else { // Messy way when a surface isn't added to CfgSurfaces
private _surfFileText = toLowerANSI preprocessFile _surfType; private _surfFileText = toLowerANSI preprocessFile _surfType;
_surfFileText = _surfFileText regexReplace ["[^a-z0-9]", ""]; _surfFileText = _surfFileText regexReplace ["[^a-z0-9]", ""];
private _idx = ACE_FRAG_SOUNDENVIRON_STR_LEN + (_surfFileText find "soundenviron"); private _idx = ACE_FRAG_SOUNDENVIRON_STR_LEN + (_surfFileText find "soundenviron");

View File

@ -34,7 +34,7 @@ private _errors = 0;
continue; continue;
}; };
if (!isClass (configFile >> "cfgAmmo" >> _ammo)) then { if (!isClass (configFile >> "CfgAmmo" >> _ammo)) then {
INFO_1("Ammo class: %1 does not exist", str _ammo); INFO_1("Ammo class: %1 does not exist", str _ammo);
INC(_errors); INC(_errors);
continue; continue;