Skip to content

Commit

Permalink
strings move CfgFunctions to PREPMAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed May 15, 2020
1 parent 7ad0811 commit c4a2804
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 23 deletions.
5 changes: 5 additions & 0 deletions addons/strings/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};
22 changes: 0 additions & 22 deletions addons/strings/CfgFunctions.hpp

This file was deleted.

16 changes: 16 additions & 0 deletions addons/strings/XEH_PREP.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PREPMAIN(capitalize);
PREPMAIN(substring);
PREPMAIN(substr);
PREPMAIN(find);
PREPMAIN(floatToString);
PREPMAIN(formatElapsedTime);
PREPMAIN(formatNumber);
PREPMAIN(leftTrim);
PREPMAIN(removeWhitespace);
PREPMAIN(replace);
PREPMAIN(rightTrim);
PREPMAIN(split);
PREPMAIN(strLen);
PREPMAIN(trim);
PREPMAIN(sanitizeHTML);
PREPMAIN(decodeURL);
3 changes: 3 additions & 0 deletions addons/strings/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "script_component.hpp"

#include "XEH_PREP.sqf"
2 changes: 1 addition & 1 deletion addons/strings/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class CfgPatches {
};
};

#include "CfgFunctions.hpp"
#include "CfgEventHandlers.hpp"

0 comments on commit c4a2804

Please sign in to comment.