Print out all the run params.
David Blume

David Blume commited on 2018-12-05 16:07:43
Showing 2 changed files, with 8 additions and 2 deletions.

... ...
@@ -1,7 +1,7 @@
1 1
 title=IP Tagger
2 2
 major_version=2
3 3
 minor_version=1
4
-build_version=0
4
+build_version=1
5 5
 mm_icon_focus_hd=pkg:/images/mm_icon_focus_hd.png
6 6
 mm_icon_focus_sd=pkg:/images/mm_icon_focus_sd.png
7 7
 splash_screen_hd=pkg:/images/splash_screen_hd.png
... ...
@@ -1,4 +1,4 @@
1
-sub Main()
1
+sub Main(launchParams)
2 2
     ' Indicate this is a Roku SceneGraph application'
3 3
     screen = CreateObject("roSGScreen")
4 4
     m.port = CreateObject("roMessagePort")
... ...
@@ -8,6 +8,12 @@ sub Main()
8 8
     m.scene = screen.CreateScene("IPTagger")
9 9
     screen.show()
10 10
 
11
+    ' Just to test various ECP params
12
+    print "Launch parameters:"
13
+    for each key in launchParams
14
+        print "  " key "=" launchParams[key]
15
+    end for
16
+
11 17
     while(true)
12 18
         msg = wait(0, m.port)
13 19
         msgType = type(msg)
14 20