Skip to content

Commit 1143f93

Browse files
committed
ai move CfgFunctions to PREPMAIN
1 parent 7ad0811 commit 1143f93

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

addons/strings/CfgEventHandlers.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Extended_PreStart_EventHandlers {
2+
class ADDON {
3+
init = QUOTE(call COMPILE_FILE(XEH_preStart));
4+
};
5+
};

addons/strings/CfgFunctions.hpp

-22
This file was deleted.

addons/strings/XEH_PREP.sqf

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PREPMAIN(capitalize);
2+
PREPMAIN(substring);
3+
PREPMAIN(substr);
4+
PREPMAIN(find);
5+
PREPMAIN(floatToString);
6+
PREPMAIN(formatElapsedTime);
7+
PREPMAIN(formatNumber);
8+
PREPMAIN(leftTrim);
9+
PREPMAIN(removeWhitespace);
10+
PREPMAIN(replace);
11+
PREPMAIN(rightTrim);
12+
PREPMAIN(split);
13+
PREPMAIN(strLen);
14+
PREPMAIN(trim);
15+
PREPMAIN(sanitizeHTML);
16+
PREPMAIN(decodeURL);

addons/strings/XEH_preInit.sqf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "script_component.hpp"
2+
3+
#include "XEH_PREP.sqf"

addons/strings/config.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ class CfgPatches {
1414
};
1515
};
1616

17-
#include "CfgFunctions.hpp"
17+
#include "CfgEventHandlers.hpp"

0 commit comments

Comments
 (0)