From 8c14ffb1c32b572053275c1659395f06e92a3fd4 Mon Sep 17 00:00:00 2001 From: chinosk <2248589280@qq.com> Date: Tue, 20 Jun 2023 19:42:21 +0800 Subject: [PATCH 1/2] update config schema --- resources/config.schema.json | 2 +- resources/config_en.schema.json | 2 +- resources/config_zh_tw.schema.json | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/config.schema.json b/resources/config.schema.json index 49e73daf..7f7a5266 100644 --- a/resources/config.schema.json +++ b/resources/config.schema.json @@ -136,7 +136,7 @@ "type": "boolean" }, "enableLiveDofController": { - "description": "启用景深控制(点击 LIVE 设置按钮开启)", + "description": "启用 Live 参数控制台(点击 LIVE 设置按钮开启)", "type": "boolean", "default": false }, diff --git a/resources/config_en.schema.json b/resources/config_en.schema.json index 5e7131e0..cc733e85 100644 --- a/resources/config_en.schema.json +++ b/resources/config_en.schema.json @@ -132,7 +132,7 @@ "type": "number" }, "enableLiveDofController": { - "description": "Enable DOF control (click LIVE setting button)", + "description": "Enable Live control pannel (click LIVE setting button)", "type": "boolean", "default": false }, diff --git a/resources/config_zh_tw.schema.json b/resources/config_zh_tw.schema.json index 821d0920..58e562d0 100644 --- a/resources/config_zh_tw.schema.json +++ b/resources/config_zh_tw.schema.json @@ -21,7 +21,7 @@ "minimum": -1 }, "better60FPS": { - "description": "開啟60幀優化", + "description": "開啟60幀最佳化", "type": "boolean", "default": false }, @@ -30,15 +30,15 @@ "type": "boolean" }, "enableVSync": { - "description": "開啟垂直同步 (開啟後 maxFps 設定將會失效)", + "description": "開啟垂直同步 (開啟後 maxFps[幀率限制] 設定將會失效)", "type": "boolean" }, "unlockSize": { - "description": "允許遊戲使用`1080p`以上的解析度", + "description": "允許遊戲使用`1080P`以上的解析度", "type": "boolean" }, "aspect_ratio_new": { - "description": "設定UI比例,默認16:9\n若將值設為-1,遊戲UI比例將會自我調整您的螢幕比例\n若UI顯示不全,可以在下麵設定\"自定義UI縮放\"\n修改後需要重啓遊戲", + "description": "設定UI比例,默認16:9\n若將值設為-1,遊戲UI比例將會自我調整您的螢幕比例\n若UI顯示不全,可以在下面設定\"自定義UI縮放\"\n修改後需要重啓遊戲", "type": "object", "properties": { "w": { @@ -132,7 +132,7 @@ "type": "number" }, "enableLiveDofController": { - "description": "啟用景深控制(點擊LIVE設定按鈕開啟)", + "description": "啟用 Live 參數控制台 (點擊Live設定按鈕開啟)", "type": "boolean", "default": false }, @@ -193,7 +193,7 @@ "type": "number" }, "defaultFOV": { - "description": "默認FOV", + "description": "預設FOV", "type": "number" }, "freecam_lookat_target": { @@ -289,7 +289,7 @@ "type": "object", "properties": { "source": { - "description": "自動更新的倉庫源", + "description": "自動更新的專案來源", "type": "string" }, "path": { @@ -393,7 +393,7 @@ } }, "loadDll": { - "description": "加載其它DLL挿件", + "description": "加載其他DLL插件", "type": "array", "items": { "type": "string" From ff4b603a186b5e525ff1f40645a09488b72abe0d Mon Sep 17 00:00:00 2001 From: chinosk <2248589280@qq.com> Date: Tue, 20 Jun 2023 19:43:51 +0800 Subject: [PATCH 2/2] fix typo --- src/hook.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/hook.cpp b/src/hook.cpp index 21d3181d..78b3b1d0 100644 --- a/src/hook.cpp +++ b/src/hook.cpp @@ -2254,28 +2254,28 @@ namespace printf("%ls: orig stiffnessForce=%f, dragForce=%f, gravity=%f, childCount=%d\n", boneName.data(), stiffnessForce, dragForce, gravity, getListCount(childElements)); - il2cpp_symbols::iterate_list(childElements, [&](size_t index, void* chaildElement) { - auto boneNameStr = il2cpp_symbols::read_field(chaildElement, CySpringParamDataChildElement_boneName); + il2cpp_symbols::iterate_list(childElements, [&](size_t index, void* childElement) { + auto boneNameStr = il2cpp_symbols::read_field(childElement, CySpringParamDataChildElement_boneName); std::wstring boneName = boneNameStr->start_char; if (boost::regex_search(boneName, expr)) { /* - auto stiffnessForce = il2cpp_symbols::read_field(chaildElement, CySpringParamDataChildElement_stiffnessForce); - auto dragForce = il2cpp_symbols::read_field(chaildElement, CySpringParamDataChildElement_dragForce); - auto gravity = il2cpp_symbols::read_field(chaildElement, CySpringParamDataChildElement_gravity); + auto stiffnessForce = il2cpp_symbols::read_field(childElement, CySpringParamDataChildElement_stiffnessForce); + auto dragForce = il2cpp_symbols::read_field(childElement, CySpringParamDataChildElement_dragForce); + auto gravity = il2cpp_symbols::read_field(childElement, CySpringParamDataChildElement_gravity); printf("child - %ls: orig stiffnessForce=%f, dragForce=%f, gravity=%f\n", boneName.data(), stiffnessForce, dragForce, gravity); */ - if (i.replace_stiffnessForce) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_stiffnessForce, i.stiffnessForce); - if (i.replace_dragForce) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_dragForce, i.dragForce); - if (i.replace_gravity) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_gravity, i.gravity); - if (i.replace_verticalWindRateSlow) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_verticalWindRateSlow, i.verticalWindRateSlow); - if (i.replace_collisionRadius) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_collisionRadius, i.collisionRadius); - if (i.replace_needEnvCollision) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_needEnvCollision, i.needEnvCollision); - if (i.replace_horizontalWindRateSlow) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_horizontalWindRateSlow, i.horizontalWindRateSlow); - if (i.replace_verticalWindRateFast) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_verticalWindRateFast, i.verticalWindRateFast); - if (i.replace_horizontalWindRateFast) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_horizontalWindRateFast, i.horizontalWindRateFast); - if (i.replace_isLimit) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_isLimit, i.isLimit); - if (i.replace_MoveSpringApplyRate) il2cpp_symbols::write_field(chaildElement, CySpringParamDataChildElement_MoveSpringApplyRate, i.MoveSpringApplyRate); + if (i.replace_stiffnessForce) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_stiffnessForce, i.stiffnessForce); + if (i.replace_dragForce) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_dragForce, i.dragForce); + if (i.replace_gravity) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_gravity, i.gravity); + if (i.replace_verticalWindRateSlow) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_verticalWindRateSlow, i.verticalWindRateSlow); + if (i.replace_collisionRadius) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_collisionRadius, i.collisionRadius); + if (i.replace_needEnvCollision) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_needEnvCollision, i.needEnvCollision); + if (i.replace_horizontalWindRateSlow) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_horizontalWindRateSlow, i.horizontalWindRateSlow); + if (i.replace_verticalWindRateFast) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_verticalWindRateFast, i.verticalWindRateFast); + if (i.replace_horizontalWindRateFast) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_horizontalWindRateFast, i.horizontalWindRateFast); + if (i.replace_isLimit) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_isLimit, i.isLimit); + if (i.replace_MoveSpringApplyRate) il2cpp_symbols::write_field(childElement, CySpringParamDataChildElement_MoveSpringApplyRate, i.MoveSpringApplyRate); } }); }