From b589a3dc1b1a77c96ab53b08e35b74a6d302f107 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Fri, 4 Sep 2026 20:53:05 -0500 Subject: [PATCH] Comment out a few debug prints --- lib/pages/boot/start_up.rb | 4 ++-- lib/pages/games.rb | 4 ++-- lib/worker/request.rb | 2 +- lib/worker/w3dhub_api.rb | 2 +- w3d_hub_linux_launcher.rb | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/pages/boot/start_up.rb b/lib/pages/boot/start_up.rb index 668850f..917db9f 100644 --- a/lib/pages/boot/start_up.rb +++ b/lib/pages/boot/start_up.rb @@ -105,9 +105,9 @@ module W3DHubLauncher step = @steps.shift step&.call - pp (1.0 - (@steps.size / @step_count.to_f)), @steps.size, @step_count + # pp (1.0 - (@steps.size / @step_count.to_f)), @steps.size, @step_count @progress_bar.value = (1.0 - (@steps.size / @step_count.to_f)) - puts + if step.nil? && @initialization_acceptable after(100) do diff --git a/lib/pages/games.rb b/lib/pages/games.rb index 9000648..ea3733d 100644 --- a/lib/pages/games.rb +++ b/lib/pages/games.rb @@ -87,7 +87,7 @@ module W3DHubLauncher def populate_game_info # FIXME: We should be able to query an api to figure out the installation state, instead of explictly writing it out like this... application = MemCache[:settings].applications.find { |app| app.id == @current_app.id } - pp application + # pp application @game_info_container.clear do # logo @@ -117,7 +117,7 @@ module W3DHubLauncher button safe_get_image("#{ROOT_PATH}/media/icons/singleplayer.png"), tip: "Single player", image_height: 1.0, background_nine_slice: NINE_SLICE_SQUARE, **CTA_BUTTON_THEME button safe_get_image("#{ROOT_PATH}/media/icons/gear.png"), tip: "Options", image_height: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_RIGHT, **CTA_BUTTON_THEME elsif @current_app.servicable? - pp @current_app + # pp @current_app button "Import", enabled: false, tip: "Import existing application installation", fill: true, height: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_LEFT, **CTA_BUTTON_THEME button "Download", tip: "Download and install application", fill: true, height: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_RIGHT, **CTA_BUTTON_THEME else diff --git a/lib/worker/request.rb b/lib/worker/request.rb index f1f7f9d..e9c9342 100644 --- a/lib/worker/request.rb +++ b/lib/worker/request.rb @@ -52,7 +52,7 @@ module W3DHubLauncher # event from Worker received def handle_event(event, data) - pp [event, data] + # pp [event, data] case event when STATUS_ERROR, STATUS_COMPLETE diff --git a/lib/worker/w3dhub_api.rb b/lib/worker/w3dhub_api.rb index 998b704..a8a9567 100644 --- a/lib/worker/w3dhub_api.rb +++ b/lib/worker/w3dhub_api.rb @@ -36,7 +36,7 @@ module W3DHubLauncher if response.success? result.data = response.read else - pp response + # pp response result.error = true end end diff --git a/w3d_hub_linux_launcher.rb b/w3d_hub_linux_launcher.rb index 484e5e7..3e3c2ff 100644 --- a/w3d_hub_linux_launcher.rb +++ b/w3d_hub_linux_launcher.rb @@ -8,6 +8,7 @@ require "socket" require "rexml" require "base64" require "logger" +require "digest" require "async" require "async/http/internet/instance"