-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
arma3/@task_force_radio/addons/task_force_radio/functions/fn_PreInit.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
Name: TFAR_fnc_PreInit | ||
Author(s): | ||
Dedmen | ||
Description: | ||
Initialises CBA_Settings component | ||
Parameters: | ||
Nothing | ||
Returns: | ||
Nothing | ||
Example: | ||
Called by ArmA via functions library. | ||
*/ | ||
|
||
|
||
// frame after preInit, but before postInit (from https://github.com/CBATeam/CBA_A3/blob/master/template/static_settings_addon/XEH_preInit.sqf) | ||
0 spawn { | ||
{ | ||
// do nothing if CBA auto_load_settings_file is enabled | ||
if (isClass (configFile >> "CfgPatches" >> "cba_auto_load_settings_file")) exitWith {}; | ||
|
||
private _info = loadFile "userconfig\cba\settings.sqf"; | ||
|
||
_info = _info call CBA_settings_fnc_parse; | ||
|
||
{ | ||
_x params ["_setting", "_value", "_force"]; | ||
[_setting, _value, _force, "server"] call CBA_settings_fnc_set; | ||
} forEach _info; | ||
} call CBA_fnc_directCall; | ||
}; |