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 Target Debug run with addon config #724

Merged
merged 2 commits into from
Nov 18, 2017
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion addons/diagnostic/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GVAR(projectileTrackedUnits) = [];

ADDON = true;

if (getMissionConfigValue ["EnableTargetDebug", 0] isEqualTo 1) then {
if (1 == getMissionConfigValue ["EnableTargetDebug", 0] || {1 == getNumber (configFile >> "EnableTargetDebug")}) then {
INFO("EnableTargetDebug is enabled");

[QGVAR(watchVariable), {
Expand Down
6 changes: 3 additions & 3 deletions addons/diagnostic/fnc_initTargetDebugConsole.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Function: CBA_diagnostic_fnc_initTargetDebugConsole

Description:
Adds addition watch statements that are run on a remote target and have their values returned to the client.
Requires `EnableTargetDebug = 1; `in description.ext
Adds additional watch statements that are run on a remote target and have their values returned to the client.
Requires `EnableTargetDebug = 1;` in addon root config or description.ext or 3den scenario attribute with the same name

Author:
(based on BIS's RscDebugConsole.sqf)
Expand All @@ -17,7 +17,7 @@ Author:

#define COUNT_WATCH_BOXES 8

if (!((getMissionConfigValue ["EnableTargetDebug", 0]) isEqualTo 1)) exitWith {};
if !(1 == getMissionConfigValue ["EnableTargetDebug", 0] || {1 == getNumber (configFile >> "EnableTargetDebug")}) exitWith {};

params ["_display"];
TRACE_1("adding server watch debug",_display);
Expand Down