diff --git a/resources/config.json b/resources/config.json index ad1aebdc..e1ba3de1 100644 --- a/resources/config.json +++ b/resources/config.json @@ -49,7 +49,7 @@ "z": 0 } }, - "cutin_first_persion": false, + "cutin_first_person": false, "externalPlugin": { "hotkey": "u", "path": "legend_g_plugin.exe", diff --git a/resources/config.schema.json b/resources/config.schema.json index 9e5d71e4..aebde058 100644 --- a/resources/config.schema.json +++ b/resources/config.schema.json @@ -234,7 +234,7 @@ }, "additionalProperties": false }, - "cutin_first_persion": { + "cutin_first_person": { "description": "CutIn 第一人称(使用 F 键切换)", "type": "boolean", "default": false diff --git a/resources/config_en.schema.json b/resources/config_en.schema.json index 821ea30c..49598427 100644 --- a/resources/config_en.schema.json +++ b/resources/config_en.schema.json @@ -234,8 +234,8 @@ }, "additionalProperties": false }, - "cutin_first_persion": { - "description": "CutIn first persion (perss F to switch).", + "cutin_first_person": { + "description": "CutIn first person (perss F to switch).", "type": "boolean", "default": false }, diff --git a/resources/config_zh_tw.schema.json b/resources/config_zh_tw.schema.json index 2cb2bf75..cecf2644 100644 --- a/resources/config_zh_tw.schema.json +++ b/resources/config_zh_tw.schema.json @@ -234,7 +234,7 @@ }, "additionalProperties": false }, - "cutin_first_persion": { + "cutin_first_person": { "description": "CutIn 第一人稱(F 鍵切換)", "type": "boolean", "default": false diff --git a/src/local/local.cpp b/src/local/local.cpp index f54ab3d4..7e5439df 100644 --- a/src/local/local.cpp +++ b/src/local/local.cpp @@ -104,14 +104,6 @@ namespace local std::unique_lock lock(db_lock); if (const auto it = text_db.find(hash); it != text_db.end()) { *result = &it->second; - /* - if (text_db[hash].compare("已解锁上限至最大") == 0) { - static auto environment_get_stacktrace = - reinterpret_cast(il2cpp_symbols::get_method_pointer("mscorlib.dll", "System", "Environment", "get_StackTrace", 0)); - - printf("catchText\n%ls\n\n", environment_get_stacktrace()->start_char); - } - */ return true; } diff --git a/src/main.cpp b/src/main.cpp index a2f69bdd..94c5beb9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -604,6 +604,9 @@ namespace if (document.HasMember("cutin_first_person")) { g_enable_cutin_first_person = document["cutin_first_person"].GetBool(); } + if (document.HasMember("cutin_first_persion")) { + printf("[WARNING] \"cutin_first_persion\" is an invalid configuration item. The correct one should be \"cutin_first_person\".\n"); + } if (document.HasMember("aspect_ratio_new")) { auto& asp = document["aspect_ratio_new"];