diff --git a/core/ShopState.lua b/core/ShopState.lua index 686f2b4..b58c55e 100644 --- a/core/ShopState.lua +++ b/core/ShopState.lua @@ -186,7 +186,7 @@ if sentName and sentName:lower() == transactionCurrency.name:lower() then local meta = parseMeta(transaction.metadata) if sentMetaname then - success, err = pcall(handlePurchase, transaction, meta, sentMetaname, transactionCurrency, transactionCurrency, state) + local success, err = pcall(handlePurchase, transaction, meta, sentMetaname, transactionCurrency, transactionCurrency, state) if success then -- Success :D else diff --git a/radon.lua b/radon.lua index 9affbe5..dbdf7b3 100644 --- a/radon.lua +++ b/radon.lua @@ -105,7 +105,7 @@ local canvas = useCanvas(display) local theme = props.config.theme - local header = BigText { display=display, text="Radon Shop", x=1, y=1, align=theme.formatting.headerAlign, bg=theme.colors.headerBgColor, color = theme.colors.headerColor, width=display.bgCanvas.width } + local header = BigText { display=display, text=props.config.branding.title, x=1, y=1, align=theme.formatting.headerAlign, bg=theme.colors.headerBgColor, color = theme.colors.headerColor, width=display.bgCanvas.width } local flatCanvas = { header @@ -506,7 +506,7 @@ local deltaTimer = os.startTimer(0) -pcall(function() ShopRunner.launchShop(shopState, function() +local success, err = pcall(function() ShopRunner.launchShop(shopState, function() -- Profiler:activate() while true do tree = Solyd.render(tree, Main {t = t, config = config, shopState = shopState}) @@ -559,5 +559,8 @@ end os.pullEvent = oldPullEvent +if not success then + error(err) +end print("Radon terminated, goodbye!") -- Profiler:write_results(nil, "profile.txt")