From a2c099a0c9786972183c5cabc491bc4929091acb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 31 Dec 2023 21:10:56 -0800 Subject: [PATCH] I'm not sure how my tablet ended up in a state where an empty config file was written --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 1214408..0edabc4 100644 --- a/main.lua +++ b/main.lua @@ -46,7 +46,7 @@ function App.initialize(arg) 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() else initialize_default_settings()