mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-15 16:52:34 +00:00
Fixed crash from Cache accessing the global variable $Store instead of the class Store
This commit is contained in:
@@ -13,7 +13,7 @@ GEM
|
|||||||
digest-crc (0.6.4)
|
digest-crc (0.6.4)
|
||||||
rake (>= 12.0.0, < 14.0.0)
|
rake (>= 12.0.0, < 14.0.0)
|
||||||
excon (0.78.1)
|
excon (0.78.1)
|
||||||
ffi (1.15.4-x64-mingw32)
|
ffi (1.15.4)
|
||||||
gosu (1.2.0)
|
gosu (1.2.0)
|
||||||
gosu_more_drawables (0.3.1)
|
gosu_more_drawables (0.3.1)
|
||||||
i18n (1.8.11)
|
i18n (1.8.11)
|
||||||
|
|||||||
@@ -174,10 +174,10 @@ class W3DHub
|
|||||||
|
|
||||||
next if file.removed? # No package data
|
next if file.removed? # No package data
|
||||||
|
|
||||||
if file.patch?
|
# if file.patch?
|
||||||
fail!("#{@application.name} requires patches. Patching is not yet supported.")
|
# fail!("#{@application.name} requires patches. Patching is not yet supported.")
|
||||||
break
|
# break
|
||||||
end
|
# end
|
||||||
|
|
||||||
next if packages.detect do |pkg|
|
next if packages.detect do |pkg|
|
||||||
pkg.category == "games" &&
|
pkg.category == "games" &&
|
||||||
@@ -186,7 +186,8 @@ class W3DHub
|
|||||||
pkg.version == manifest.version
|
pkg.version == manifest.version
|
||||||
end
|
end
|
||||||
|
|
||||||
packages.push(Api::Package.new(
|
packages.push(
|
||||||
|
Api::Package.new(
|
||||||
{ category: "games", subcategory: @app_id, name: file.package, version: manifest.version }
|
{ category: "games", subcategory: @app_id, name: file.package, version: manifest.version }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ class W3DHub
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.package_path(category, subcategory, name, version)
|
def self.package_path(category, subcategory, name, version)
|
||||||
package_cache_dir = $Store.settings[:package_cache_dir]
|
package_cache_dir = Store.settings[:package_cache_dir]
|
||||||
|
|
||||||
"#{package_cache_dir}/#{category}/#{subcategory}/#{version}/#{name}.package"
|
"#{package_cache_dir}/#{category}/#{subcategory}/#{version}/#{name}.package"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.install_path(application, channel)
|
def self.install_path(application, channel)
|
||||||
app_install_dir = $Store.settings[:app_install_dir]
|
app_install_dir = Store.settings[:app_install_dir]
|
||||||
|
|
||||||
"#{app_install_dir}/#{application.category}/#{application.id}/#{channel.id}"
|
"#{app_install_dir}/#{application.category}/#{application.id}/#{channel.id}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user