Crash on save engine settings
bchantech opened this issue · 1 comments
bchantech commented
If the engine
folder is not present it crashes when pressing Save on Engine Settings.
main.lua:379: SAVE FILE FAIL: engine/settings.json
Traceback:
crash.lua:55: in function 'handler'
[C]: in function 'assert'
main.lua:379: in function '_SaveFile'
main.lua:387: in function '_SaveJson'
src/Kernel/Settings.lua:74: in function 'save'
src/Kernel/Scene/BootSettings.lua:21: in function 'onClick'
src/Kernel/UI/Button.lua:64: in function 'mousereleased'
src/Kernel/Scene/BootSettings.lua:103: in function 'mousereleased'
src/Kernel/BootScreen.lua:92: in function 'mousereleased'
main.lua:158: in function <main.lua:157>
[love "callbacks.lua"]:154: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
jakubg1 commented
Known issue. I'm not sure if there is a way to create folders if they don't exist in Lua (besides a dirty os.execute("mkdir engine")
approach). Soon the settings may get rewritten, but in the meantime, I will probably place the settings file in the root directory.