From fbd9a02eb2eb621c3e22006e117535dd5f0344e9 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: Sat, 13 Apr 2024 14:10:16 +0800 Subject: [PATCH] Update specialgames.hpp --- LunaHook/engines/ppsspp/specialgames.hpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/LunaHook/engines/ppsspp/specialgames.hpp b/LunaHook/engines/ppsspp/specialgames.hpp index 72fc50a..009e56e 100644 --- a/LunaHook/engines/ppsspp/specialgames.hpp +++ b/LunaHook/engines/ppsspp/specialgames.hpp @@ -199,6 +199,22 @@ bool FULJM05603(LPVOID data, size_t* size, HookParam*) return true; } +bool FULJM05889(LPVOID data, size_t* size, HookParam*) +{ + auto text = reinterpret_cast(data); + auto len = reinterpret_cast(size); + for(size_t i=0;i<*len;){ + if(IsDBCSLeadByteEx(932,(text[i]))){ + i+=2; + continue; + } + if(text[i]=='^') + text[i]='\n'; + + i+=1; + } + return true; +} bool NPJH50619F(void* data, size_t* len, HookParam* hp){ auto s = std::string((char*)data,*len); @@ -290,7 +306,8 @@ std::unordered_mapemfunctionhooks= { {0x88517C8,{0,1,0,0,FULJM05603,"ULJM06114"}}, //Himawari_no_Kyoukai_to_Nagai_Natsuyasumi_Extra_Vacation_JPN_PSP-MOEMOE {0x881c444,{FULL_STRING,0,0,0,0,"ULJM06321"}},//name+text,sjit,FULL_STRING to split name and text - + //ましろ色シンフォニー *mutsu-no-hana + {0x8868AB8,{0,0,0,0,FULJM05889,"ULJM05889"}} }; } \ No newline at end of file