Add reliable way to determine current game version

This commit is contained in:
Azumgi 2018-08-21 09:00:12 +03:00
parent 25ac1f8763
commit 16d72fc593

View file

@ -1,7 +1,8 @@
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 = (type(script_data["eac-untrusted"]) == "nil")
VT1 = not pcall(require, "PlayFab.json")
-- Native mod object used by Fatshark mod manager -- Native mod object used by Fatshark mod manager
local vmf_mod_object = {} local vmf_mod_object = {}
@ -46,6 +47,7 @@ function vmf_mod_object:init()
vmf.mods_unload_event(true) vmf.mods_unload_event(true)
func(...) func(...)
end) end)
vmf:echo("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA IS THIS VT1: " .. tostring(VT1))
end end
-- ##################################################################################################################### -- #####################################################################################################################