patcher: add option to specify predefined patch url

This option adds patch_provider to Patcher class, currently you can choose either y0soro or Krock (by default it uses y0soro for latest 3.0.0 patch)
This commit is contained in:
2022-08-24 20:14:38 +07:00
parent 8449c104d9
commit 184e96fa2d
3 changed files with 9 additions and 3 deletions

View File

@ -7,7 +7,10 @@ APPDIRS=AppDirs(APP_NAME, APP_AUTHOR)
LAUNCHER_API_URL_OS = "https://sdk-os-static.hoyoverse.com/hk4e_global/mdk/launcher/api"
LAUNCHER_API_URL_CN = "https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api"
HDIFFPATCH_GIT_URL="https://github.com/sisong/HDiffPatch"
PATCH_GIT_URL = "https://notabug.org/y0soro/dawn"
PATCH_LIST = {
"Krock": "https://notabug.org/Krock/dawn",
"y0soro": "https://notabug.org/y0soro/dawn"
}
TELEMETRY_URL_LIST = [
"log-upload-os.mihoyo.com",
"log-upload-eur.mihoyo.com",