I'm not sure how my tablet ended up in a state where an empty config file was written
This commit is contained in:
parent
ce8fa29abd
commit
a2c099a0c9
2
main.lua
2
main.lua
|
@ -46,7 +46,7 @@ function App.initialize(arg)
|
||||||
|
|
||||||
love.graphics.setBackgroundColor(1,1,1)
|
love.graphics.setBackgroundColor(1,1,1)
|
||||||
|
|
||||||
if love.filesystem.getInfo('config') then
|
if love.filesystem.getInfo('config') and #love.filesystem.read('config') > 0 then
|
||||||
load_settings()
|
load_settings()
|
||||||
else
|
else
|
||||||
initialize_default_settings()
|
initialize_default_settings()
|
||||||
|
|
Loading…
Reference in New Issue