Redid file checking to use the provided chunked checksums, added (broken) support for partial package downloads (resumed package fails verification), misc. supporting changes.

This commit is contained in:
2021-11-17 22:34:15 -06:00
parent 2ccc09d0b4
commit 662e5c2b0c
8 changed files with 81 additions and 37 deletions

View File

@@ -164,8 +164,8 @@ class W3DHub
# client requests package: data={"category":"games","name":"ECW_Asteroids.zip","subcategory":"ecw","version":"1.0.0.0"}
#
# server responds with download bytes, probably supports chunked download and resume
def self.package(category, subcategory, name, version, &block)
Cache.fetch_package(W3DHUB_API_CONNECTION, category, subcategory, name, version, block)
def self.package(package, &block)
Cache.fetch_package(package, block)
end
#! === Server List API === !#