From 3c1d2b4c52f7f891409f8c757042ca6b4fa3ae12 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: Tue, 8 Oct 2024 18:30:22 +0800 Subject: [PATCH] psp --- LunaHook/engines/ppsspp/specialgames.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/LunaHook/engines/ppsspp/specialgames.hpp b/LunaHook/engines/ppsspp/specialgames.hpp index 898ca65..ceae958 100644 --- a/LunaHook/engines/ppsspp/specialgames.hpp +++ b/LunaHook/engines/ppsspp/specialgames.hpp @@ -250,6 +250,13 @@ namespace ppsspp s = std::regex_replace(s, std::wregex(LR"(<(.*?)\|(.*?)>)"), L"$1"); return write_string_overwrite(data, size, s); } + bool FNPJH50459(void *data, size_t *len, HookParam *hp) + { + auto s = std::string((char *)data, *len); + s = std::regex_replace(s, std::regex(R"(#SCL\((.*?)\)(.*?)#ECL)"), "$2"); + strReplace(s, "\n\r\n", "\n"); + return write_string_overwrite(data, len, s); + } bool FULJM05690(void *data, size_t *len, HookParam *hp) { auto s = std::string((char *)data, *len); @@ -387,6 +394,10 @@ namespace ppsspp {0x882A650, {0, 1, 0, 0, 0, "ULJM06023"}}, // 0時の鐘とシンデレラ~Halloween Wedding~ (instance: 2) {0x8855CA0, {0, 1, 0, 0, 0, "ULJM06272"}}, + // セブンスドラゴン2020 + {0x88847A0, {CODEC_UTF8, 1, 0, 0, FNPJH50459, "NPJH50459"}}, + // セブンスドラゴン2020-Ⅱ + {0x8889CCC, {CODEC_UTF8, 1, 0, 0, FNPJH50459, "NPJH50716"}}, // 会有两三条后续文本都被一次性提取到。 }; } \ No newline at end of file