Skip to content

Commit

Permalink
Update conf.lua
Browse files Browse the repository at this point in the history
andrewmcwatters committed Apr 17, 2017

Verified

This commit was signed with the committer’s verified signature.
psafont Pau Ruiz Safont
1 parent 06d1ca9 commit 64ab24c
Showing 3 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Planimeter
Copyright (c) 2017 Planimeter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# love-conf
LÖVE 0.10.2 configuration file
# lgf-conf
lgameframework configuration file

Adds `argv`, `_CLIENT`, `_SERVER`, `_DEDICATED`, a `--dedicated` argument that
disables client-side modules, and OS-specific `c.window.icon` functionality.
Adds `argv`, a `--debug` argument, `_DEBUG`, `_CLIENT`, `_SERVER`, a
`--dedicated` argument that disables client-side modules, `_DEDICATED`, and
OS-specific `c.window.icon` functionality.

## License

The MIT License (MIT)

Copyright (c) 2016 Planimeter
Copyright (c) 2017 Planimeter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
23 changes: 5 additions & 18 deletions conf.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--=========== Copyright © 2016, Planimeter, All rights reserved. =============--
--=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
@@ -20,27 +20,14 @@ if ( not _SERVER ) then
_CLIENT = true
end

function love.conf( c )
c.title = "Untitled"
c.version = "0.10.2"
function framework.conf( c )
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
c.modules.graphics = false
else
c.window.highdpi = true
c.window.title = "Untitled"
c.window.icon = "images/icon.png"
require( "love.system" )
if ( love.system.getOS() == "OS X" ) then
if ( jit.os == "OSX" ) then
c.window.icon = "images/icon_osx.png"
end
end

0 comments on commit 64ab24c

Please sign in to comment.