add: push luahook resource everytime

This commit is contained in:
0O0o0oOoO00 2025-05-22 17:40:05 +08:00
parent 6fa924b02a
commit f5191c03a1
9 changed files with 25 additions and 0 deletions

View File

@ -236,6 +236,7 @@
"HookGeneral": {
"Enable": false,
"RestartEverytime": true,
"PushEveryTime": true,
"Architecture": "auto",
"InjectMethod": "local_patch",
"RequestTimeLimit": 10,

View File

@ -933,6 +933,10 @@
"type": "checkbox",
"value": true
},
"PushEveryTime": {
"type": "checkbox",
"value": true
},
"Architecture": {
"type": "select",
"value": "auto",

View File

@ -153,6 +153,7 @@ OldRetire:
HookGeneral:
Enable: false
RestartEverytime: true
PushEveryTime: true
Architecture:
value: auto
option: [ auto, x86, x86_64, arm64-v8a, armeabi-v7a ]

View File

@ -81,6 +81,7 @@ class GeneratedConfig:
# Group `HookGeneral`
HookGeneral_Enable = False
HookGeneral_RestartEverytime = True
HookGeneral_PushEveryTime = True
HookGeneral_Architecture = 'auto' # auto, x86, x86_64, arm64-v8a, armeabi-v7a
HookGeneral_InjectMethod = 'local_patch' # local_patch, global_patch, outer_inject
HookGeneral_RequestTimeLimit = 10

View File

@ -775,6 +775,10 @@
"name": "HookGeneral.RestartEverytime.name",
"help": "HookGeneral.RestartEverytime.help"
},
"PushEveryTime": {
"name": "HookGeneral.PushEveryTime.name",
"help": "HookGeneral.PushEveryTime.help"
},
"Architecture": {
"name": "HookGeneral.Architecture.name",
"help": "HookGeneral.Architecture.help",

View File

@ -775,6 +775,10 @@
"name": "HookGeneral.RestartEverytime.name",
"help": "HookGeneral.RestartEverytime.help"
},
"PushEveryTime": {
"name": "HookGeneral.PushEveryTime.name",
"help": "HookGeneral.PushEveryTime.help"
},
"Architecture": {
"name": "HookGeneral.Architecture.name",
"help": "HookGeneral.Architecture.help",

View File

@ -775,6 +775,10 @@
"name": "每次启动Alas时重启",
"help": "推荐打开"
},
"PushEveryTime": {
"name": "每次重新推送资源",
"help": "视情况开关,建议开启"
},
"Architecture": {
"name": "架构",
"help": "选择使用的架构,如果自动检测失败,请手动选择\n游戏库目录中看到的架构和选项的对应关系一般如下\nx86 -> x86\nx86_64 -> x86_64\narm -> armeabi-v7a\narm64 -> arm64-v8a",

View File

@ -775,6 +775,10 @@
"name": "HookGeneral.RestartEverytime.name",
"help": "HookGeneral.RestartEverytime.help"
},
"PushEveryTime": {
"name": "HookGeneral.PushEveryTime.name",
"help": "HookGeneral.PushEveryTime.help"
},
"Architecture": {
"name": "HookGeneral.Architecture.name",
"help": "HookGeneral.Architecture.help",

View File

@ -452,4 +452,6 @@ class CrackResource:
self.__check_update()
if self.has_new_version or not self.__is_remote_file_exist():
self.__push_resource()
if deep_get(self.config.data, "Hook.HookGeneral.PushEveryTime", True):
self.__push_resource()
self.__do_inject()