Skip to content

Commit

Permalink
General - Replaced ace_settingsInitialized wherever possible (#10402)
Browse files Browse the repository at this point in the history
Replaced ace_settingsInitialized wherever possible
  • Loading branch information
johnb432 authored Oct 15, 2024
1 parent 3f4a1d4 commit 3e9f6e7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/common/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ call FUNC(checkFiles);


//////////////////////////////////////////////////
// Set up ace_settingsInitialized eventhandler
// Set up CBA_settingsInitialized eventhandler
//////////////////////////////////////////////////

["CBA_settingsInitialized", {
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_cbaSettings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ GVAR(settingsMovedToSQF) = [];
if !(SLX_XEH_MACHINE select 8) then {WARNING("PostInit not finished");};
INFO("Settings initialized.");

//Event that settings are safe to use:
//Event that settings are safe to use, kept for BWC
["ace_settingsInitialized", []] call CBA_fnc_localEvent;

//Set init finished and run all delayed functions:
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_cbaSettings_settingChanged.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Author: PabstMirror
* Function for handling a cba setting being changed.
* Adds warning if global setting is changed after ace_settingsInitialized.
* Adds warning if global setting is changed after CBA_settingsInitialized.
*
* Arguments:
* 0: Setting Name <STRING>
Expand Down
2 changes: 1 addition & 1 deletion addons/field_rations/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if !(hasInterface) exitWith {};

["ace_settingsInitialized", {
["CBA_settingsInitialized", {
// Exit if not enabled
if (!XGVAR(enabled)) exitWith {};

Expand Down
2 changes: 1 addition & 1 deletion addons/sitting/XEH_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Exit on Headless
if (!hasInterface) exitWith {};

["ace_settingsInitialized", {
["CBA_settingsInitialized", {
TRACE_1("SettingInit",XGVAR(enable));

// If not enabled, then do not add CanInteractWith Condition or event handlers
Expand Down
2 changes: 1 addition & 1 deletion addons/viewrestriction/XEH_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Exit on Headless Client
if !(hasInterface) exitWith {};

["ace_settingsInitialized", {
["CBA_settingsInitialized", {
// Exit if module is disabled
if (XGVAR(mode) == 0) exitWith {};

Expand Down

0 comments on commit 3e9f6e7

Please sign in to comment.