Clear playlet lib arg (#84)

* Clear playlet lib arg

* changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-06-24 23:58:12 -04:00
1 parent 8f8c7d38a8
commit 2fdbb18e33
2 files changed
+11

No files matched your search

+9
View File
@@ -20,6 +20,8 @@ function Main(args as object) as void
screen.setMessagePort(m.port)
m.global = screen.getGlobalNode()
ClearPlayletLibUrlsIfNeeded(args)
scene = screen.CreateScene("BootstrapScene")
screen.show()
@@ -70,3 +72,10 @@ function Main(args as object) as void
end while
end function
function ClearPlayletLibUrlsIfNeeded(launchArgs as object) as void
if launchArgs = invalid or launchArgs.clearPlayletLibUrls = invalid
return
end if
DeleteRegistryKey("playlet_lib_urls", "Playlet")
end function