Skip to content

Commit

Permalink
unscheduled to avoid serialization pop up, parenthesis around arg
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 authored Mar 17, 2018
1 parent 156efeb commit 024db62
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions addons/main/script_macros_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,12 +1745,16 @@ Macro: FILE_EXISTS
commy2
------------------------------------------- */
#define FILE_EXISTS(FILE) (call {\
private _control = (uiNamespace getVariable ["RscDisplayMain", displayNull]) ctrlCreate ["RscHTML", -1];\
if (isNull _control) exitWith {\
loadFile FILE != "";\
private _return = false;\
isNil {\
private _control = (uiNamespace getVariable ["RscDisplayMain", displayNull]) ctrlCreate ["RscHTML", -1];\
if (isNull _control) then {\
_return = loadFile (FILE) != "";\
} else {\
_control htmlLoad (FILE);\
_return = ctrlHTMLLoaded _control;\
ctrlDelete _control;\
};\
};\
_control htmlLoad FILE;\
private _return = ctrlHTMLLoaded _control;\
ctrlDelete _control;\
_return\
})

0 comments on commit 024db62

Please sign in to comment.