Files
barotrauma-localmods/Performance Fix/Lua/ForcedAutorun/init.lua
2025-03-31 13:19:47 +02:00

17 lines
650 B
Lua

if CLIENT then
PerformanceFix = {}
PerformanceFix.Path = ...
if not File.Exists(PerformanceFix.Path .. "/config.json") then
File.Write(PerformanceFix.Path .. "/config.json", json.serialize(dofile(PerformanceFix.Path .. "/Lua/defaultconfig.lua")))
end
PerformanceFix.Config = json.parse(File.Read(PerformanceFix.Path .. "/config.json"))
Game.AddCommand("performancefix_reload", "reloads config", function ()
dofile(PerformanceFix.Path .. "/Lua/performancefix.lua")
end)
dofile(PerformanceFix.Path .. "/Lua/performancefix_gui.lua")
dofile(PerformanceFix.Path .. "/Lua/performancefix.lua")
end