From 2b348a94def0a8b4b9f58654feda7b15ae76a0ad Mon Sep 17 00:00:00 2001 From: commy2 Date: Tue, 13 Jan 2015 22:47:46 +0100 Subject: [PATCH] fix that blank module --- extras/blank/CfgEventHandlers.hpp | 6 ++++++ extras/{blank_module => blank}/XEH_preInit.sqf | 2 +- extras/blank/config.cpp | 15 +++++++++++++++ extras/blank/functions/fnc_empty.sqf | 3 +++ extras/blank/functions/script_component.hpp | 1 + .../script_component.hpp | 0 extras/blank_module/CfgEventHandlers.hpp | 5 ----- extras/blank_module/config.cpp | 17 ----------------- extras/blank_module/functions/fnc_empty.sqf | 3 --- 9 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 extras/blank/CfgEventHandlers.hpp rename extras/{blank_module => blank}/XEH_preInit.sqf (71%) create mode 100644 extras/blank/config.cpp create mode 100644 extras/blank/functions/fnc_empty.sqf create mode 100644 extras/blank/functions/script_component.hpp rename extras/{blank_module => blank}/script_component.hpp (100%) delete mode 100644 extras/blank_module/CfgEventHandlers.hpp delete mode 100644 extras/blank_module/config.cpp delete mode 100644 extras/blank_module/functions/fnc_empty.sqf diff --git a/extras/blank/CfgEventHandlers.hpp b/extras/blank/CfgEventHandlers.hpp new file mode 100644 index 0000000000..f0a9f14d91 --- /dev/null +++ b/extras/blank/CfgEventHandlers.hpp @@ -0,0 +1,6 @@ + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + }; +}; diff --git a/extras/blank_module/XEH_preInit.sqf b/extras/blank/XEH_preInit.sqf similarity index 71% rename from extras/blank_module/XEH_preInit.sqf rename to extras/blank/XEH_preInit.sqf index a515eb4187..802b74fd63 100644 --- a/extras/blank_module/XEH_preInit.sqf +++ b/extras/blank/XEH_preInit.sqf @@ -1,3 +1,3 @@ #include "script_component.hpp" -PREP(empty); \ No newline at end of file +PREP(empty); diff --git a/extras/blank/config.cpp b/extras/blank/config.cpp new file mode 100644 index 0000000000..a7b7bae6df --- /dev/null +++ b/extras/blank/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author[] = {""}; + authorUrl = ""; + VERSION_CONFIG; + }; +}; + +#include "CfgEventHandlers.hpp" diff --git a/extras/blank/functions/fnc_empty.sqf b/extras/blank/functions/fnc_empty.sqf new file mode 100644 index 0000000000..c60a82b2d8 --- /dev/null +++ b/extras/blank/functions/fnc_empty.sqf @@ -0,0 +1,3 @@ +#include "script_component.hpp" + +diag_log text format["This is here as an example!!!"]; diff --git a/extras/blank/functions/script_component.hpp b/extras/blank/functions/script_component.hpp new file mode 100644 index 0000000000..2cd25455d2 --- /dev/null +++ b/extras/blank/functions/script_component.hpp @@ -0,0 +1 @@ +#include "\z\ace\addons\blank_module\script_component.hpp" \ No newline at end of file diff --git a/extras/blank_module/script_component.hpp b/extras/blank/script_component.hpp similarity index 100% rename from extras/blank_module/script_component.hpp rename to extras/blank/script_component.hpp diff --git a/extras/blank_module/CfgEventHandlers.hpp b/extras/blank_module/CfgEventHandlers.hpp deleted file mode 100644 index 51c0e909d7..0000000000 --- a/extras/blank_module/CfgEventHandlers.hpp +++ /dev/null @@ -1,5 +0,0 @@ -class Extended_PreInit_EventHandlers { - class ADDON { - init = QUOTE( call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) ); - }; -}; \ No newline at end of file diff --git a/extras/blank_module/config.cpp b/extras/blank_module/config.cpp deleted file mode 100644 index 6c8d8ca938..0000000000 --- a/extras/blank_module/config.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "script_component.hpp" - -class CfgPatches { - class ADDON { - units[] = {}; - weapons[] = {}; - requiredVersion = 0.60; - requiredAddons[] = {"ace_core"}; - version = "0.95"; - versionStr = "0.95"; - versionAr[] = {0,95,0}; - author[] = {""}; - authorUrl = ""; - }; -}; - -#include "CfgEventHandlers.hpp" \ No newline at end of file diff --git a/extras/blank_module/functions/fnc_empty.sqf b/extras/blank_module/functions/fnc_empty.sqf deleted file mode 100644 index 028fb068c9..0000000000 --- a/extras/blank_module/functions/fnc_empty.sqf +++ /dev/null @@ -1,3 +0,0 @@ -#include "script_component.hpp" - -diag_log text format["This is here as an example!!!"]; \ No newline at end of file