From fdee1ff0d97aa593331e873549f4d8919a9a7ead Mon Sep 17 00:00:00 2001 From: LA_DI_DA <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Tue, 18 Mar 2025 13:52:06 +0800 Subject: [PATCH] add: game lib dir setting for luahook --- config/template.json | 3 ++- module/config/argument/args.json | 4 ++++ module/config/argument/argument.yaml | 3 +++ module/config/config_generated.py | 1 + module/config/i18n/en-US.json | 4 ++++ module/config/i18n/ja-JP.json | 4 ++++ module/config/i18n/zh-CN.json | 4 ++++ module/config/i18n/zh-TW.json | 4 ++++ 8 files changed, 26 insertions(+), 1 deletion(-) diff --git a/config/template.json b/config/template.json index 7460b0fbb..c56435619 100644 --- a/config/template.json +++ b/config/template.json @@ -97,7 +97,8 @@ "HookGeneral": { "Enable": false, "InjectMethod": "local_patch", - "RequestTimeLimit": 10 + "RequestTimeLimit": 10, + "GameLibDir": null }, "Misc": { "ChapterMove": false, diff --git a/module/config/argument/args.json b/module/config/argument/args.json index 620428a85..4692e2d51 100644 --- a/module/config/argument/args.json +++ b/module/config/argument/args.json @@ -494,6 +494,10 @@ "RequestTimeLimit": { "type": "input", "value": 10 + }, + "GameLibDir": { + "type": "textarea", + "value": "" } }, "Misc": { diff --git a/module/config/argument/argument.yaml b/module/config/argument/argument.yaml index 2a8c1327b..79ababac6 100644 --- a/module/config/argument/argument.yaml +++ b/module/config/argument/argument.yaml @@ -155,6 +155,9 @@ HookGeneral: value: local_patch option: [local_patch, global_patch, outer_inject] RequestTimeLimit: 10 + GameLibDir: + value: "" + type: textarea ShipProperty: Enable: false Armor: -1 diff --git a/module/config/config_generated.py b/module/config/config_generated.py index 25ef099b3..13186ada3 100644 --- a/module/config/config_generated.py +++ b/module/config/config_generated.py @@ -81,6 +81,7 @@ class GeneratedConfig: HookGeneral_Enable = False HookGeneral_InjectMethod = 'local_patch' # local_patch, global_patch, outer_inject HookGeneral_RequestTimeLimit = 10 + HookGeneral_GameLibDir = None # Group `ShipProperty` ShipProperty_Enable = False diff --git a/module/config/i18n/en-US.json b/module/config/i18n/en-US.json index 956a3b38d..c41fd0012 100644 --- a/module/config/i18n/en-US.json +++ b/module/config/i18n/en-US.json @@ -741,6 +741,10 @@ "RequestTimeLimit": { "name": "HookGeneral.RequestTimeLimit.name", "help": "HookGeneral.RequestTimeLimit.help" + }, + "GameLibDir": { + "name": "HookGeneral.GameLibDir.name", + "help": "HookGeneral.GameLibDir.help" } }, "ShipProperty": { diff --git a/module/config/i18n/ja-JP.json b/module/config/i18n/ja-JP.json index 588aeb070..8e977d7bb 100644 --- a/module/config/i18n/ja-JP.json +++ b/module/config/i18n/ja-JP.json @@ -741,6 +741,10 @@ "RequestTimeLimit": { "name": "HookGeneral.RequestTimeLimit.name", "help": "HookGeneral.RequestTimeLimit.help" + }, + "GameLibDir": { + "name": "HookGeneral.GameLibDir.name", + "help": "HookGeneral.GameLibDir.help" } }, "ShipProperty": { diff --git a/module/config/i18n/zh-CN.json b/module/config/i18n/zh-CN.json index 2886fa3e8..ea4fc47f9 100644 --- a/module/config/i18n/zh-CN.json +++ b/module/config/i18n/zh-CN.json @@ -741,6 +741,10 @@ "RequestTimeLimit": { "name": "请求时限(s)", "help": "" + }, + "GameLibDir": { + "name": "游戏库目录", + "help": "以x86架构为例,目录一般为/data/app/<一串乱码>/<一串乱码>/lib/x86" } }, "ShipProperty": { diff --git a/module/config/i18n/zh-TW.json b/module/config/i18n/zh-TW.json index e547bc20e..46f960b3b 100644 --- a/module/config/i18n/zh-TW.json +++ b/module/config/i18n/zh-TW.json @@ -741,6 +741,10 @@ "RequestTimeLimit": { "name": "HookGeneral.RequestTimeLimit.name", "help": "HookGeneral.RequestTimeLimit.help" + }, + "GameLibDir": { + "name": "HookGeneral.GameLibDir.name", + "help": "HookGeneral.GameLibDir.help" } }, "ShipProperty": {