hoist out some common settings
This commit is contained in:
parent
22bf3da7de
commit
0719fdeaaf
5
main.lua
5
main.lua
|
@ -87,6 +87,11 @@ function App.initialize_globals()
|
|||
end
|
||||
|
||||
function App.initialize(arg)
|
||||
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
|
||||
love.keyboard.setKeyRepeat(true)
|
||||
|
||||
love.graphics.setBackgroundColor(1,1,1)
|
||||
|
||||
if Current_app == 'run' then
|
||||
run.initialize(arg)
|
||||
elseif Current_app == 'source' then
|
||||
|
|
5
run.lua
5
run.lua
|
@ -16,11 +16,6 @@ end
|
|||
-- called only for real run
|
||||
function run.initialize(arg)
|
||||
log_new('run')
|
||||
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
|
||||
love.keyboard.setKeyRepeat(true)
|
||||
|
||||
love.graphics.setBackgroundColor(1,1,1)
|
||||
|
||||
if Settings then
|
||||
run.load_settings()
|
||||
else
|
||||
|
|
|
@ -61,11 +61,6 @@ end
|
|||
-- called only for real run
|
||||
function source.initialize()
|
||||
log_new('source')
|
||||
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
|
||||
love.keyboard.setKeyRepeat(true)
|
||||
|
||||
love.graphics.setBackgroundColor(1,1,1)
|
||||
|
||||
if Settings and Settings.source then
|
||||
source.load_settings()
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue