Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Jan 22, 2025
1 parent 63aa79e commit 6710d8b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cpp/LunaHook/LunaHook/engine64/vita3k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ namespace
static std::string last;
if (last == s)
return buffer->clear();
last = s;
FPCSG00855_2_1(buffer, hp);
}
void FPCSG00477(TextBuffer *buffer, HookParam *hp)
Expand All @@ -592,6 +593,18 @@ namespace
strReplace(ws, L"^", L"");
buffer->from(WideStringToString(ws, 932));
}
void PCSG00829(TextBuffer *buffer, HookParam *hp)
{
auto s = buffer->strW();
static std::wstring last;
if (last == s)
return buffer->clear();
last = s;
strReplace(s, L"\\n ", L"");
strReplace(s, L"\\n", L"");
s = std::regex_replace(s, std::wregex(LR"(\[(.*?),\d\])"), L"");
buffer->from(s);
}
template <int __>
void PCSG00451(TextBuffer *buffer, HookParam *hp)
{
Expand Down Expand Up @@ -847,6 +860,8 @@ namespace
// ハナヤマタ よさこいLIVE!
{0x810789EE, {CODEC_UTF16, 3, 0, 0, PCSG00451<1>, "PCSG00451"}},
{0x81078B22, {CODEC_UTF16, 1, 0, 0, PCSG00451<0>, "PCSG00451"}},
// 喧嘩番長 乙女
{0x800086C0, {CODEC_UTF16, 0, 0, 0, PCSG00829, "PCSG00829"}}, // 缺少部分

};
return 1;
Expand Down

0 comments on commit 6710d8b

Please sign in to comment.