local bitser = require 'libs.bitser' local fs = love.filesystem function loadSave() config = loadFromFile(CONFIG_FILE) end function loadFromFile(filename) if fs.read(filename) == nil then return {} -- new object end return bitser.loadLoveFile(filename) end function initConfig() if config.fullscreen == nil then config.fullscreen = false end if config.music == nil then config.music = true end if not config.input then scene = InputConfigScene(true) else scene = TitleScene() end end function saveConfig() bitser.dumpLoveFile(CONFIG_FILE, config) end