mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 14:53:49 +00:00
Added initial support for extracting map preview images from game level mixes that include a screenshot or overhead map
This commit is contained in:
@@ -89,6 +89,10 @@ module W3DHubLauncher
|
||||
0xff_3d3846
|
||||
end
|
||||
end
|
||||
|
||||
def map_preview_image_path
|
||||
format("%s/map_preview_%s.png", W3DHubLauncher::CACHE_PATH, Digest::SHA256.hexdigest("#{@game}_#{@channel}_#{@current_map}"))
|
||||
end
|
||||
end
|
||||
|
||||
class Team
|
||||
|
||||
@@ -35,7 +35,10 @@ module W3DHubLauncher
|
||||
end
|
||||
|
||||
def application_installed?(application, channel)
|
||||
applications.find { |app| app.id == application&.id && app.channel == channel&.id }
|
||||
app_id = application.is_a?(String) ? application : application.id
|
||||
channel_id = channel.is_a?(String) ? channel : channel.id
|
||||
|
||||
applications.find { |app| app.id == app_id && app.channel == channel_id }
|
||||
end
|
||||
|
||||
# User explictly set options
|
||||
|
||||
Reference in New Issue
Block a user