mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2025-02-19 22:41:47 +00:00
Set global vars before creating JFScene
This commit is contained in:
parent
ece472b91c
commit
2ccacf6529
@ -9,11 +9,13 @@ sub Main (args as dynamic) as void
|
||||
|
||||
m.port = CreateObject("roMessagePort")
|
||||
m.screen.setMessagePort(m.port)
|
||||
m.scene = m.screen.CreateScene("JFScene")
|
||||
m.screen.show() ' vscode_rale_tracker_entry
|
||||
|
||||
' Set any initial Global Variables
|
||||
m.global = m.screen.getGlobalNode()
|
||||
SaveAppToGlobal()
|
||||
SaveDeviceToGlobal()
|
||||
|
||||
m.scene = m.screen.CreateScene("JFScene")
|
||||
m.screen.show() ' vscode_rale_tracker_entry
|
||||
|
||||
playstateTask = CreateObject("roSGNode", "PlaystateTask")
|
||||
playstateTask.id = "playstateTask"
|
||||
@ -24,9 +26,6 @@ sub Main (args as dynamic) as void
|
||||
m.global.addFields({ queueManager: CreateObject("roSGNode", "QueueManager") })
|
||||
m.global.addFields({ audioPlayer: CreateObject("roSGNode", "AudioPlayer") })
|
||||
|
||||
SaveAppToGlobal()
|
||||
SaveDeviceToGlobal()
|
||||
|
||||
app_start:
|
||||
' First thing to do is validate the ability to use the API
|
||||
if not LoginFlow() then return
|
||||
|
Loading…
x
Reference in New Issue
Block a user