Moved processed app icons to cache directory, removed app logos (banners) from media since we now download them and app backgrounds from the api

This commit is contained in:
2025-08-04 22:09:00 -05:00
parent b909952790
commit 2031f589b7
13 changed files with 9 additions and 5 deletions

View File

@@ -208,6 +208,8 @@ class W3DHub
def app_icons
return unless Store.applications
@status_label.value = "Retrieving application icons, this might take a moment..." # I18n.t(:"boot.checking_for_updates")
packages = []
Store.applications.games.each do |app|
packages << { category: app.category, subcategory: app.id, name: "#{app.id}.ico", version: "" }
@@ -220,7 +222,7 @@ class W3DHub
next if package.error?
path = Cache.package_path(package.category, package.subcategory, package.name, package.version)
generated_icon_path = "#{GAME_ROOT_PATH}/media/icons/#{package.subcategory}.png"
generated_icon_path = "#{CACHE_PATH}/#{package.subcategory}.png"
regenerate = false
@@ -245,6 +247,8 @@ class W3DHub
def app_logos_and_backgrounds
return unless Store.applications
@status_label.value = "Retrieving application image assets, this might take a moment..." # I18n.t(:"boot.checking_for_updates")
packages = []
Store.applications.games.each do |app|
packages << { category: app.category, subcategory: app.id, name: "logo.png", version: "" }