Identation Fixes

This commit is contained in:
Ricardo Ianelli 2013-02-10 02:54:20 -02:00
parent cbeab6f9b0
commit 72d63673ca
2 changed files with 8 additions and 7 deletions

View File

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

View File

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