xurfer/xurfer/lovr/conf.lua

24 lines
517 B
Lua

local util = require("util")
local launch = require "launch"
local function isVR()
return launch.mode == "vr" or util.match(arg,"--desktop") == false
end
local function isResizable()
return launch.mode == "desktop"
end
function lovr.conf(t)
if isVR() then
t.headset.supersample = 2
else
t.modules.headset = nil
end
t.identity = "xurfer"
t.window.title = "X U R F Ξ R"
t.window.width = 1280
t.window.height = 720
t.window.resizable = isResizable()
end