From d7ff38b3f0336eb7aaf5dc01e34c967aaa5be8c2 Mon Sep 17 00:00:00 2001 From: chinosk <2248589280@qq.com> Date: Wed, 5 Jun 2024 18:18:53 +0800 Subject: [PATCH] update submodule, update font --- README.md | 6 ++++-- app/src/main/assets/gakumas-local | 2 +- app/src/main/cpp/GakumasLocalify/Hook.cpp | 2 +- update_submodule.bat | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 update_submodule.bat diff --git a/README.md b/README.md index a672e12..6a06005 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,16 @@ # How to use -- 这是一个 XPosed 插件,已 Root 用户可以使用 [LSPosed](https://github.com/LSPosed/LSPosed),未 Root 用户可以使用 [LSPatch](https://github.com/LSPosed/LSPatch)。以上两个框架均测试通过,能正常运行。 +- 这是一个 XPosed 插件,已 Root 用户可以使用 [LSPosed](https://github.com/LSPosed/LSPosed),未 Root 用户可以使用 [LSPatch](https://github.com/LSPosed/LSPatch)。 # TODO -- [ ] 卡片信息、TIP等部分的文本 hook +- [ ] 卡片信息、TIPS 等部分的文本 hook +- [ ] TIPS 文本消失 - [ ] 更多类型的文件替换 +- [ ] LSPatch 集成模式无效 ... and more diff --git a/app/src/main/assets/gakumas-local b/app/src/main/assets/gakumas-local index 1cbb639..9ffa685 160000 --- a/app/src/main/assets/gakumas-local +++ b/app/src/main/assets/gakumas-local @@ -1 +1 @@ -Subproject commit 1cbb639d58ed5709e9f08ad3a0e593d792db9f51 +Subproject commit 9ffa685157b3f0ffa9a5d700256ac240d1c65455 diff --git a/app/src/main/cpp/GakumasLocalify/Hook.cpp b/app/src/main/cpp/GakumasLocalify/Hook.cpp index c6b31cb..d0002e2 100644 --- a/app/src/main/cpp/GakumasLocalify/Hook.cpp +++ b/app/src/main/cpp/GakumasLocalify/Hook.cpp @@ -303,7 +303,7 @@ namespace GakumasLocal::HookMain { const auto newFont = Font_klass->New(); Font_ctor->Invoke(newFont); - static std::string fontName = Local::GetBasePath() / "local-files" / "MO-UDShinGo-SC-Gb4-M.otf"; + static std::string fontName = Local::GetBasePath() / "local-files" / "gkamsZHFontMIX.otf"; CreateFontFromPath(newFont, Il2cppString::New(fontName)); fontCache = newFont; return newFont; diff --git a/update_submodule.bat b/update_submodule.bat new file mode 100644 index 0000000..3cd7836 --- /dev/null +++ b/update_submodule.bat @@ -0,0 +1,2 @@ +git submodule foreach --recursive git pull origin main +pause \ No newline at end of file