diff options
Diffstat (limited to 'spec/test1_spec.lua')
| -rw-r--r-- | spec/test1_spec.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/test1_spec.lua b/spec/test1_spec.lua index 9248b11..147abbd 100644 --- a/spec/test1_spec.lua +++ b/spec/test1_spec.lua @@ -1,5 +1,26 @@ print("Hello, world!") +--[[Create the headless client init file]] +local f = io.open("spec/headless/deviceinit.lua","w") +f:write([=[ +return { + ["Anti Alias"] = 16, + ["Bits Per Pixel"] = 16, + ["Device Type"] = "BEST", + ["Display Adapter"] = 0, + ["Double Buffer"] = true, + ["Multithreaded"] = false, + ["Driver Type"] = "NULL", + ["Fullscreen"] = false, + ["Stencil Buffer"] = true, + ["Stereo Buffer"] = false, + ["VSync"] = true, + ["Window Width"] = 640, + ["Window Height"] = 480, +} +]=]) +f:close() + local game_bin = nil if package.config:sub(1,1) == "/" then -- linux or osx game_bin = "bin/client/bin/brokengine_client" |
