Merge pull request #209 from cewert/fix-exit-video-crash

Fix for crash when exiting a video
This commit is contained in:
Neil Burrows 2020-05-07 17:43:08 +01:00 committed by GitHub
commit 79e47668b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,9 +41,9 @@ sub Main()
input = CreateObject("roInput")
input.SetMessagePort(m.port)
di = CreateObject("roDeviceInfo")
di.setMessagePort(m.port)
di.EnableScreensaverExitedEvent(true)
m.device = CreateObject("roDeviceInfo")
m.device.setMessagePort(m.port)
m.device.EnableScreensaverExitedEvent(true)
' This is the core logic loop. Mostly for transitioning between scenes
' This now only references m. fields so could be placed anywhere, in theory