diff --git a/cpp/LunaHook/LunaHook/engine64/rpcs3.cpp b/cpp/LunaHook/LunaHook/engine64/rpcs3.cpp index 910155e0..d1ce5b70 100644 --- a/cpp/LunaHook/LunaHook/engine64/rpcs3.cpp +++ b/cpp/LunaHook/LunaHook/engine64/rpcs3.cpp @@ -190,6 +190,7 @@ namespace hpinternal.address = ret; hpinternal.emu_addr = em_address; // 用于生成hcode hpinternal.type = USING_STRING | NO_CONTEXT | BREAK_POINT | op.type; + hpinternal.codepage = 932; hpinternal.text_fun = op.hookfunc; hpinternal.filter_fun = op.filterfun; hpinternal.offset = op.offset; diff --git a/cpp/LunaHook/LunaHook/engine64/vita3k.cpp b/cpp/LunaHook/LunaHook/engine64/vita3k.cpp index b7da1f3e..9e310b53 100644 --- a/cpp/LunaHook/LunaHook/engine64/vita3k.cpp +++ b/cpp/LunaHook/LunaHook/engine64/vita3k.cpp @@ -120,6 +120,7 @@ bool vita3k::attach_function() hpinternal.type = NO_CONTEXT | BREAK_POINT | op.type; if (!(op.type & USING_CHAR)) hpinternal.type |= USING_STRING; + hpinternal.codepage = 932; hpinternal.text_fun = op.hookfunc; hpinternal.filter_fun = op.filterfun; hpinternal.offset = op.offset; diff --git a/cpp/LunaHook/LunaHook/engine64/yuzu.cpp b/cpp/LunaHook/LunaHook/engine64/yuzu.cpp index 210d2990..12000a65 100644 --- a/cpp/LunaHook/LunaHook/engine64/yuzu.cpp +++ b/cpp/LunaHook/LunaHook/engine64/yuzu.cpp @@ -202,6 +202,7 @@ bool yuzu::attach_function() hpinternal.type = NO_CONTEXT | BREAK_POINT | op.type; if (!(op.type & USING_CHAR)) hpinternal.type |= USING_STRING; + hpinternal.codepage = 932; hpinternal.text_fun = op.hookfunc; hpinternal.filter_fun = op.filterfun; hpinternal.offset = op.offset; diff --git a/cpp/LunaHook/LunaHook/engines/ppsspp/ppsspp.cpp b/cpp/LunaHook/LunaHook/engines/ppsspp/ppsspp.cpp index 9772c128..69610a0c 100644 --- a/cpp/LunaHook/LunaHook/engines/ppsspp/ppsspp.cpp +++ b/cpp/LunaHook/LunaHook/engines/ppsspp/ppsspp.cpp @@ -347,6 +347,7 @@ namespace ppsspp hpinternal.address = ret; hpinternal.emu_addr = em_address; // 用于生成hcode hpinternal.type = USING_STRING | NO_CONTEXT | BREAK_POINT | op.type; + hpinternal.codepage = 932; hpinternal.text_fun = op.hookfunc; hpinternal.filter_fun = op.filterfun; hpinternal.offset = op.offset;