File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33if [ -d obj ]; then
4- rm -fR obj
4+ rm -fR obj/ *
55fi
66
7- cp -fR src obj
7+ cp -fR src/ * obj
88
99MANIFEST=(` find obj/ -name * .lua -type f` );
1010
Original file line number Diff line number Diff line change @@ -7,6 +7,23 @@ assert(loadScript(radio.preLoad))()
77assert (loadScript (protocol .transport ))()
88assert (loadScript (SCRIPT_HOME .. " /MSP/common.lua" ))()
99
10- local run = assert (loadScript (SCRIPT_HOME .. " /ui.lua" ))()
10+ local run_ui = assert (loadScript (SCRIPT_HOME .. " /ui.lua" ))()
11+ local background = assert (loadScript (SCRIPT_HOME .. " /background.lua" ))()
1112
12- return { run = run }
13+ local MENU_TIMESLICE = 100
14+
15+ local lastMenuEvent = 0
16+
17+ function run (event )
18+ lastMenuEvent = getTime ()
19+
20+ run_ui (event )
21+ end
22+
23+ function run_bg ()
24+ if lastMenuEvent + MENU_TIMESLICE < getTime () then
25+ background .run_bg ()
26+ end
27+ end
28+
29+ return { init = background .init , run = run , background = run_bg }
You can’t perform that action at this time.
0 commit comments