start saving some settings to disk on quit

[?]
Jul 1, 2022, 5:15 AM
7M7LS7I2QT6AFZ6RVK5KK2CZ6SNJAMQIWD7MX34F7MQ3MZKH72GAC

Dependencies

Change contents

  • edit in main.lua at line 267
    [3.609][3.8:45]()
    -- make sure to save before quitting
  • edit in main.lua at line 268
    [3.66]
    [2.8]
    -- make sure to save before quitting
  • edit in main.lua at line 272
    [2.68]
    [3.98]
    -- save some important settings
    local x,y,displayindex = love.window.getPosition()
    local settings = {
    x=x, y=y, displayindex=displayindex,
    width=App.screen.width, height=App.screen.height,
    font_height=Font_height, filename=Filename, screen_top=Screen_top1, cursor=Cursor1}
    love.filesystem.write('config', json.encode(settings))