Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional mod to skip missing Mod check #866

Merged
merged 5 commits into from
Apr 29, 2018
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions addons/versioning/XEH_postInitServer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ FUNC(paranoid) = {

QGVAR(versions_serv) addPublicVariableEventHandler { (_this select 1) call FUNC(paranoid) };

// Skip missing mod check if it is disabled.
if (getNumber (configFile >> "CBA_skipMissingModCheck") == 1) exitWith {};

// Missing Modfolder check
FUNC(handleMismatch) = {
params ["_machine","_mod"];
Expand Down
1 change: 1 addition & 0 deletions optionals/disable_missing_mod_check/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\cba\addons\disable_missing_mod_check
17 changes: 17 additions & 0 deletions optionals/disable_missing_mod_check/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = ECSTRING(Optional,Component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_extended_eventhandlers", "CBA_versioning"};
version = VERSION;
authors[] = {"Dedmen"};
};
};

CBA_skipMissingModCheck = 1;
13 changes: 13 additions & 0 deletions optionals/disable_missing_mod_check/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#define COMPONENT disable_missing_mod_check
#include "\x\cba\addons\main\script_mod.hpp"


#ifdef DEBUG_ENABLED_DISABLE_MISSING_MOD_CHECK
#define DEBUG_MODE_FULL
#endif

#ifdef DEBUG_SETTINGS_DISABLE_MISSING_MOD_CHECK
#define DEBUG_SETTINGS DEBUG_SETTINGS_DISABLE_MISSING_MOD_CHECK
#endif

#include "\x\cba\addons\main\script_macros.hpp"