From a02f862e8e876479588fa2243930cce569d58ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Fri, 22 Mar 2024 22:31:33 +0800 Subject: [PATCH] Update yuzusuyu.cpp --- LunaHook/engine64/yuzusuyu.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/LunaHook/engine64/yuzusuyu.cpp b/LunaHook/engine64/yuzusuyu.cpp index c4cf204..363767f 100644 --- a/LunaHook/engine64/yuzusuyu.cpp +++ b/LunaHook/engine64/yuzusuyu.cpp @@ -199,6 +199,12 @@ bool F0100A1200CA3C000(void* data, size_t* len, HookParam* hp){ } return write_string_overwrite(data,len,s); } +bool F0100C29017106000(void* data, size_t* len, HookParam* hp){ + auto s = std::wstring((wchar_t*)data,*len/2); + std::wregex pattern(L"\\n+|(\\n)+"); + s = std::regex_replace(s, pattern, L" "); + return write_string_overwrite(data,len,s); +} namespace{ auto _=[](){ emfunctionhooks={ @@ -226,8 +232,8 @@ auto _=[](){ {0x80095010 - 0x80004000,{"Chou no Doku Hana no Kusari Taishou Tsuya Koi Ibun",simpleutf16getter<1>,F0100A1200CA3C000,L"0100A1200CA3C000",L"2.0.1"}},//Main Text + Names - - {0x80db5d34 - 0x80004000,{"Chou no Doku Hana no Kusari Taishou Tsuya Koi Ibun",simpleutf16getter<1>,F0100A1200CA3C000,L"0100A1200CA3C000",L"1.1.0"}},//Main Text + Names + + {0x80a05170 - 0x80004000,{"Live a Live",simpleutf16getter<0>,F0100C29017106000,L"0100C29017106000",L"1.0.0"}}, }; return 1; }();