This commit is contained in:
恍兮惚兮 2024-10-08 18:30:22 +08:00
parent 6112fa9563
commit 3c1d2b4c52

View File

@ -250,6 +250,13 @@ namespace ppsspp
s = std::regex_replace(s, std::wregex(LR"(<(.*?)\|(.*?)>)"), L"$1"); s = std::regex_replace(s, std::wregex(LR"(<(.*?)\|(.*?)>)"), L"$1");
return write_string_overwrite(data, size, s); 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) bool FULJM05690(void *data, size_t *len, HookParam *hp)
{ {
auto s = std::string((char *)data, *len); auto s = std::string((char *)data, *len);
@ -387,6 +394,10 @@ namespace ppsspp
{0x882A650, {0, 1, 0, 0, 0, "ULJM06023"}}, {0x882A650, {0, 1, 0, 0, 0, "ULJM06023"}},
// 0時の鐘とシンデレラHalloween Wedding (instance: 2) // 0時の鐘とシンデレラHalloween Wedding (instance: 2)
{0x8855CA0, {0, 1, 0, 0, 0, "ULJM06272"}}, {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"}}, // 会有两三条后续文本都被一次性提取到。
}; };
} }