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 1
1
#! /bin/bash
2
2
3
3
if [ -d obj ]; then
4
- rm -fR obj
4
+ rm -fR obj/ *
5
5
fi
6
6
7
- cp -fR src obj
7
+ cp -fR src/ * obj
8
8
9
9
MANIFEST=(` find obj/ -name * .lua -type f` );
10
10
Original file line number Diff line number Diff line change @@ -7,6 +7,23 @@ assert(loadScript(radio.preLoad))()
7
7
assert (loadScript (protocol .transport ))()
8
8
assert (loadScript (SCRIPT_HOME .. " /MSP/common.lua" ))()
9
9
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" ))()
11
12
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