Skip to content

Commit d501195

Browse files
committed
Update Vita3k Binary Star hook mapping and cleanup text filter
1 parent d7c7b3b commit d501195

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/NativeImpl/LunaHook/LunaHook/emulators/vita3k_1.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ namespace
137137
if (hp->type & CODEC_UTF8)
138138
s = re::sub(s, u8R"(( )*#n( )*)");
139139
else
140-
s = re::sub(s, R"((\x81\x40)*(#n)*(\x81\x40)*)");
140+
s = re::sub(s, R"((\x81\x40)*#n(\x81\x40)*)");
141141
s = re::sub(s, R"(#[A-Za-z]+\[[\d\-,\.]*\])");
142142
buffer->from(s);
143143
}
@@ -375,14 +375,6 @@ namespace
375375
buffer->from(s);
376376
PCSG00472(buffer, hp);
377377
}
378-
void FPCSG00389(TextBuffer *buffer, HookParam *hp)
379-
{
380-
auto s = buffer->strA();
381-
s = re::sub(s, "[\\s]");
382-
s = re::sub(s, "(#n)+");
383-
s = re::sub(s, "#[A-Za-z]+\\[(\\d*[.,])?\\d+\\]");
384-
buffer->from(s);
385-
}
386378
void FPCSG00405(TextBuffer *buffer, HookParam *hp)
387379
{
388380
auto s = buffer->strA();
@@ -1129,7 +1121,8 @@ static const emfuncinfoX emfunctionhooks_1[] = {
11291121
// 熱血異能部活譚 Trigger Kiss
11301122
{0x8004e44a, {0, 0, 0, 0, FPCSG00410, "PCSG00410"}}, // dialogue,sjis
11311123
// バイナリースター
1132-
{0x80058606, {0, 1, 0xd, 0, FPCSG00389, "PCSG00389"}}, // dialogue,sjis
1124+
{0x800B85C6, {FULL_STRING, 0, 0, 0, PCSG00766, "PCSG00389"}}, // 1.00
1125+
{0x800B849A, {FULL_STRING, 0, 0, 0, PCSG00766, "PCSG00389"}}, // 1.01
11331126
// アマガミ
11341127
{0x80070658, {0, 0, 0, TPCSG00291, 0, "PCSG00291"}},
11351128
// るいは智を呼ぶ

0 commit comments

Comments
 (0)