Thunder 3 năm trước cách đây
mục cha
commit
89907b3680

+ 1 - 0
addons/main/$PBOPREFIX$

@@ -0,0 +1 @@
+z\RD501\addons\main

+ 4 - 4
addons/main/config.cpp

@@ -25,14 +25,14 @@ class cfgFunctions
 {
 	class concat_function(scripts)//This will be the name of the mods functions,in functionViewer.
 	{
-		tag=ADDON;
+		tag=QUOTE(ADDON);
 
 		class concat_function(functions)
 		{		
 			
 			class laatc_lift
 			{
-				file=MACRO_QUOTE(macro_mod_script_path\vehicle_lift\laatc_lift.sqf);
+				file=QPATHTOF(functions\vehicle_lift\laatc_lift.sqf);
 			};	
 		};
 	};	
@@ -66,7 +66,7 @@ class cfgFunctions
 			{
 				
 				postInit = 1;
-				file = MACRO_QUOTE(macro_mod_script_path\add_radio_freq_shower.sqf);
+				file = QUOTE(macro_mod_script_path\add_radio_freq_shower.sqf);
 			};
 		
 		};
@@ -107,7 +107,7 @@ class Extended_Init_EventHandlers
 	{
         class RD501_MedNotif 
 		{
-            init = call macro_fnc_name(add_med_notification);
+            init = QUOTE(call macro_fnc_name(add_med_notification));
         };
     };
 };

+ 8 - 8
addons/main/config_macros.hpp

@@ -72,13 +72,13 @@
 
 //---Patches---
 #define macro_patch_name(component) MODNAME##_patch_##component
-#define macro_A3_patch macro_quote(A3_Data_F_Tank_Loadorder)
-#define macro_root_req macro_quote(RD501_patch_main)
-#define macro_lvl2_req macro_quote(RD501_patch_weapons), macro_quote(RD501_patch_jumppack), macro_quote(RD501_patch_helmets), macro_quote(RD501_patch_vehicle_weapons)
-#define macro_lvl3_req macro_quote(RD501_patch_units), macro_quote(RD501_patch_vehicles), macro_quote(RD501_patch_zeus)
-#define macro_lvl1_req macro_quote(RD501_patch_particle_effects), macro_quote(RD501_patch_VenatorMK2), macro_quote(RD501_patch_emp)
-#define macro_lvl4_req macro_quote(RD501_patch_droids_config), macro_quote(macro_patch_name(laat_variants))
-#define macro_lvl5_req macro_quote(macro_patch_name(legacy_classnames))
+#define macro_A3_patch QUOTE(A3_Data_F_Tank_Loadorder)
+#define macro_root_req QUOTE(RD501_patch_main)
+#define macro_lvl1_req QUOTE(RD501_patch_particle_effects), QUOTE(RD501_patch_VenatorMK2), QUOTE(RD501_patch_emp)
+#define macro_lvl2_req QUOTE(RD501_patch_weapons), QUOTE(RD501_patch_jumppack), QUOTE(RD501_patch_helmets), QUOTE(RD501_patch_vehicle_weapons)
+#define macro_lvl3_req QUOTE(RD501_patch_units), QUOTE(RD501_patch_vehicles), QUOTE(RD501_patch_zeus)
+#define macro_lvl4_req QUOTE(RD501_patch_droids_config), QUOTE(macro_patch_name(laat_variants))
+#define macro_lvl5_req QUOTE(macro_patch_name(legacy_classnames))
 #define macro_end_patches macro_lvl5_req
 
 //---Weapons, Mags, and Ammo
@@ -231,7 +231,7 @@
 
 //---XEH prep---
 #define macro_prep_xeh(SCRIPT,name)\
-[macro_quote(macro_mod_script_path\SCRIPT),macro_quote(macro_fnc_name(name))] call CBA_fnc_compileFunction;
+[QUOTE(macro_mod_script_path\SCRIPT),QUOTE(macro_fnc_name(name))] call CBA_fnc_compileFunction;
 
 //---particle efffects---
 #define macro_new_cloudlet(name) MODNAME##_cloudlet_##name

+ 16 - 0
addons/main/script_component.hpp

@@ -0,0 +1,16 @@
+#define COMPONENT main
+#include "\z\RD501\addons\main\script_mod.hpp"
+
+// #define DEBUG_MODE_FULL
+// #define DISABLE_COMPILE_CACHE
+
+#ifdef DEBUG_ENABLED_MAIN
+    #define DEBUG_MODE_FULL
+#endif
+    #ifdef DEBUG_SETTINGS_MAIN
+    #define DEBUG_SETTINGS DEBUG_SETTINGS_MAIN
+#endif
+
+#include "\z\RD501\addons\main\script_macros.hpp"
+#include "\z\RD501\addons\main\config_macros.hpp"
+#include "\z\RD501\addons\main\_cba_patches.hpp"

+ 9 - 0
addons/main/script_mod.hpp

@@ -0,0 +1,9 @@
+#define MAINPREFIX z
+#define PREFIX RD501
+
+#include "script_version.hpp"
+
+#define VERSION MAJOR.MINOR.PATCH.BUILD
+#define VERSION_AR MAJOR,MINOR,PATCH,BUILD
+
+#define REQUIRED_VERSION 1.88