Fixed reseting delayed hooks after reloading
This commit is contained in:
parent
820e97a8d7
commit
222561152d
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,12 @@
|
||||||
local vmf = get_mod("VMF")
|
local vmf = get_mod("VMF")
|
||||||
|
|
||||||
HOOKED_FUNCTIONS = {} -- global, because 'loadstring' doesn't see local variables
|
HOOKED_FUNCTIONS = {} -- global, because 'loadstring' doesn't see local variables
|
||||||
DELAYED_HOOKING_ENABLED = true
|
|
||||||
|
if type(DELAYED_HOOKING_ENABLED) == "boolean" then
|
||||||
|
DELAYED_HOOKING_ENABLED = DELAYED_HOOKING_ENABLED
|
||||||
|
else
|
||||||
|
DELAYED_HOOKING_ENABLED = true
|
||||||
|
end
|
||||||
|
|
||||||
local _DELAYED_HOOKS = {} -- _DELAYED_HOOKS[hook_name] = {{mod_name, hooked_function},{}}
|
local _DELAYED_HOOKS = {} -- _DELAYED_HOOKS[hook_name] = {{mod_name, hooked_function},{}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue