Skip to content

Commit

Permalink
load embedded lib if libs are not being served in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Feb 16, 2024
1 parent 7503c2d commit 84c6d82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion playlet-app/src/components/BootstrapScene/BootstrapScene.bs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ end function
function GetPlayletLibUrls() as object
#if DEBUG
debug = { type: "debug", link: Manifest.ReadValue("playlet_lib_debug_url") }
return [debug]
embedded = { type: "embedded", link: Manifest.ReadValue("playlet_lib_embedded_url") }
#if DEBUG_FALLBACK_TO_EMBEDDED
return [debug, embedded]
#else
return [debug]
#end if
#else
savedUrls = Registry.GetPlayletLibUrlsFromRegistry()
if savedUrls <> invalid
Expand Down
2 changes: 1 addition & 1 deletion playlet-app/src/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ playlet_lib_debug_url=http://DEBUG_HOST_IP_ADDRESS:8086/playlet-lib.zip

git_commit_sha=unknown

bs_const=DEBUG=false
bs_const=DEBUG=false;DEBUG_FALLBACK_TO_EMBEDDED=true

0 comments on commit 84c6d82

Please sign in to comment.