Initial work on game verification

This commit is contained in:
2021-12-23 18:15:11 -06:00
parent 570652e40d
commit f1e7d430b6
2 changed files with 46 additions and 25 deletions

View File

@@ -5,14 +5,22 @@ class W3DHub
:repairer
end
def exec_task
# fetch manifests
# load manifests
# run presence and checksum checks
# extract and re/place broken/missing files
# if a large number of files are missing from a single package
# simply reextract the whole thing
# mark application as installed/repaired
def execute_task
fail_fast
return false if failed?
manifests = fetch_manifests
return false if failed?
packages = build_package_list(manifests)
return false if failed?
verify_files(manifests, packages)
return false if failed?
# pp packages.select { |pkg| pkg.name == "misc" }
true
end
end
end