mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 06:43:55 +00:00
Added GSH game server data containing class, stub Account and Join Server dialogs, support 'lazy loading' remote images (downloading images in the background then calling a callback to replace temp image if host element is still in layout), misc. other changes.
This commit is contained in:
@@ -8,7 +8,8 @@ module W3DHubLauncher
|
||||
end
|
||||
|
||||
# downloads requested resource, periodically reporting progress until completion, returning path for file on disk
|
||||
def self.download_url
|
||||
def self.download_url(url, path, method = :get, headers = nil, body = nil, &block)
|
||||
Worker::Request.new(:download_url, { url: url, path: path, method: method, headers: headers, body: body }, &block)
|
||||
end
|
||||
|
||||
# returns user account data
|
||||
|
||||
Reference in New Issue
Block a user