From bc546dbd7afe886696f628bc95b5bdcd3fc8fdaf Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 24 Jun 2023 23:54:04 -0400 Subject: [PATCH 1/2] Clear playlet lib arg --- playlet/src/source/Main.bs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playlet/src/source/Main.bs b/playlet/src/source/Main.bs index 621c67a7..dd849247 100644 --- a/playlet/src/source/Main.bs +++ b/playlet/src/source/Main.bs @@ -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 From 3461662e9f3126bf52514313fdb398a52294585e Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 24 Jun 2023 23:56:43 -0400 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91795741..9c14848c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New preferences system - Unified settings between TV and web app - Web API allowing to import/export preferences (no UI for that yet) +- Added launch argument `clearPlayletLibUrls` + - If the dev menu is used to load a custom Playlet lib url, but the lib does not have a functionality to revert back, `curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/dev?clearPlayletLibUrls=true"` can be used to remove the custom lib, and revert to using default. ### Changed