Identation Fixes
This commit is contained in:
parent
cbeab6f9b0
commit
72d63673ca
1
init.lua
1
init.lua
|
@ -49,6 +49,7 @@ g_modules.ensureModuleLoaded("game_interface")
|
|||
g_modules.autoLoadModules(9999)
|
||||
|
||||
local script = '/' .. g_app.getCompactName() .. 'rc'
|
||||
|
||||
if g_resources.fileExists(script) then
|
||||
dofile(script)
|
||||
end
|
|
@ -53,6 +53,9 @@ function startup()
|
|||
end
|
||||
|
||||
function init()
|
||||
connect(g_app, { onRun = startup,
|
||||
onClose = exit })
|
||||
|
||||
g_window.setMinimumSize({ width = 600, height = 480 })
|
||||
g_sounds.preload(musicFilename)
|
||||
|
||||
|
@ -92,14 +95,11 @@ function init()
|
|||
g_configs.set('uuid', g_crypt.getMachineUUID())
|
||||
g_configs.save()
|
||||
end
|
||||
|
||||
connect(g_app, {
|
||||
onRun = startup,
|
||||
onClose = exit,
|
||||
})
|
||||
end
|
||||
|
||||
function terminate()
|
||||
disconnect(g_app, { onRun = startup,
|
||||
onClose = exit })
|
||||
-- save window configs
|
||||
g_settings.set('window-size', g_window.getUnmaximizedSize())
|
||||
g_settings.set('window-pos', g_window.getUnmaximizedPos())
|
||||
|
|
Loading…
Reference in New Issue