I'm not sure how my tablet ended up in a state where an empty config file was written

This commit is contained in:
Kartik K. Agaram 2023-12-31 21:10:56 -08:00
parent ce8fa29abd
commit a2c099a0c9
1 changed files with 1 additions and 1 deletions

View File

@ -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()