Skip to content

Commit

Permalink
修复 cutIn 第一人称设置无效的问题 (fix typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinosk6 committed Oct 10, 2023
1 parent 2afd78a commit a062e68
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion resources/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"z": 0
}
},
"cutin_first_persion": false,
"cutin_first_person": false,
"externalPlugin": {
"hotkey": "u",
"path": "legend_g_plugin.exe",
Expand Down
2 changes: 1 addition & 1 deletion resources/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
},
"additionalProperties": false
},
"cutin_first_persion": {
"cutin_first_person": {
"description": "CutIn 第一人称(使用 F 键切换)",
"type": "boolean",
"default": false
Expand Down
4 changes: 2 additions & 2 deletions resources/config_en.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
2 changes: 1 addition & 1 deletion resources/config_zh_tw.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
},
"additionalProperties": false
},
"cutin_first_persion": {
"cutin_first_person": {
"description": "CutIn 第一人稱(F 鍵切換)",
"type": "boolean",
"default": false
Expand Down
8 changes: 0 additions & 8 deletions src/local/local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Il2CppString* (*)()>(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;
}

Expand Down
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit a062e68

Please sign in to comment.