-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
conf.lua
55 lines (48 loc) · 1.22 KB
/
conf.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose:
--
--==========================================================================--
require( "engine.shared.profile" )
profile.push( "load" )
argv = {}
for _, v in ipairs( arg ) do argv[ v ] = true end
if ( argv[ "--debug" ] ) then
_DEBUG = true
end
if ( argv[ "--dedicated" ] ) then
_SERVER = true
_DEDICATED = true
end
if ( not _SERVER ) then
_CLIENT = true
end
function love.conf( c )
c.title = "Grid Engine"
c.version = "11.3"
if ( _DEDICATED ) then
c.modules.keyboard = false
c.modules.mouse = false
c.modules.joystick = false
c.modules.touch = false
c.modules.image = false
c.modules.graphics = false
c.modules.audio = false
c.modules.sound = false
c.modules.system = false
c.modules.font = false
c.modules.window = false
c.modules.video = false
else
c.window.icon = "images/icon.png"
require( "love.system" )
if ( love.system.getOS() == "OS X" ) then
c.window.icon = "images/icon_osx.png"
end
c.window.resizable = true
end
c.identity = "grid"
require( "engine.shared.loadlib" )
require( "engine.shared.config" )
config.load( c )
end