Report previous-run crashes to diagnostics

This commit is contained in:
Brahim Hadriche committed 2026-06-20 18:42:10 -04:00
1 parent d03909f8d6
commit c32431fefc
8 files changed
+144 -11

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
namespace AppManager
function CaptureLastExitInfo(scene as object) as void
manager = CreateObject("roAppManager")
' roAppManager.GetLastExitInfo() is only available on Roku OS 13 and above
if FindMemberFunction(manager, "GetLastExitInfo") = invalid
return
end if
lastExitInfo = manager.GetLastExitInfo()
Logger.LogLastExitInfo(lastExitInfo)
scene.lastExitInfo = lastExitInfo
end function
end namespace