Compat WS - Make compat auto load if DLC is present (#9205)

This commit is contained in:
Mike-MF 2023-09-05 15:19:09 +01:00 committed by GitHub
parent 88e0c8f27b
commit 5417a18d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 12 deletions

View File

@ -1,2 +0,0 @@
[preprocess]
enabled = false

View File

@ -1,13 +1,5 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\lxWS\data_f_lxWS\config.bin")
#else
#define PATCH_SKIP "Western Sahara"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -15,6 +7,7 @@ class CfgPatches {
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"data_f_lxWS_Loadorder"}; requiredAddons[] = {"data_f_lxWS_Loadorder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Mike"}; authors[] = {"Mike"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
@ -23,5 +16,3 @@ class CfgPatches {
}; };
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#endif