[VMF Loader] Clean up
This commit is contained in:
parent
bab8a36027
commit
a0f61e9295
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
local vmf
|
local vmf
|
||||||
|
|
||||||
-- Global variable indicating which version of the game is currently running
|
-- Global variable indicating which version of the game is currently running
|
||||||
--VT1 = (type(script_data["eac-untrusted"]) == "nil")
|
|
||||||
VT1 = not pcall(require, "PlayFab.json")
|
VT1 = not pcall(require, "PlayFab.json")
|
||||||
|
|
||||||
-- Native mod object used by Fatshark mod manager
|
-- Native mod object used by Fatshark mod manager
|
||||||
|
@ -43,7 +42,7 @@ function vmf_mod_object:init()
|
||||||
|
|
||||||
vmf = get_mod("VMF")
|
vmf = get_mod("VMF")
|
||||||
vmf.delayed_chat_messages_hook()
|
vmf.delayed_chat_messages_hook()
|
||||||
vmf:hook("ModManager.destroy", function(func, ...)
|
vmf:hook(ModManager, "destroy", function(func, ...)
|
||||||
vmf.mods_unload_event(true)
|
vmf.mods_unload_event(true)
|
||||||
func(...)
|
func(...)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue