Add reliable way to determine current game version
This commit is contained in:
parent
25ac1f8763
commit
16d72fc593
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
-- #####################################################################################################################
|
-- #####################################################################################################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue