Skip to content

Commit

Permalink
use Extended_PreInit_EventHandlers to register CBA settings
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade authored Jan 15, 2024
1 parent b768db0 commit 80106f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/main/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CfgFunctions
class EHGetOut {};
class EHHandleDisconnect {};
class EHKilled {};
class registerCBASettings {preInit = 1};
class registerCBASettings {};
class weaponHolder {};
class whitelist {};
class isWhitelisted {};
Expand Down
6 changes: 6 additions & 0 deletions addons/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ class CfgPatches

#include "CfgVehicles.hpp"
#include "CfgFunctions.hpp"

class Extended_PreInit_EventHandlers {
class grad_slingHelmet_main {
init = "[] call GRAD_slingHelmet_fnc_registerCBASettings";
};
};

0 comments on commit 80106f8

Please sign in to comment.