mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
(hopefully) improved renpy hook
This commit is contained in:
parent
d74dcdc286
commit
9f8e523ce3
@ -16912,8 +16912,14 @@ bool InsertRenpyHook()
|
|||||||
hp.offset = 4;
|
hp.offset = 4;
|
||||||
hp.index = 0xc;
|
hp.index = 0xc;
|
||||||
hp.length_offset = 0;
|
hp.length_offset = 0;
|
||||||
hp.split = pusha_ebx_off - 4;
|
//hp.split = pusha_ebx_off - 4;
|
||||||
hp.type = USING_STRING | USING_UNICODE | NO_CONTEXT | DATA_INDIRECT | USING_SPLIT;
|
hp.text_fun = [](auto, auto, auto, DWORD* data, DWORD* split, DWORD* count)
|
||||||
|
{
|
||||||
|
*data = *(DWORD*)(*data + 0xc);
|
||||||
|
*count = wcslen((wchar_t*)*data) * sizeof(wchar_t);
|
||||||
|
*split = wcschr((wchar_t*)*data, L'%') == nullptr;
|
||||||
|
};
|
||||||
|
hp.type = USING_STRING | USING_UNICODE | NO_CONTEXT | DATA_INDIRECT/* | USING_SPLIT*/;
|
||||||
//hp.filter_fun = [](void* str, auto, auto, auto) { return *(wchar_t*)str != L'%'; };
|
//hp.filter_fun = [](void* str, auto, auto, auto) { return *(wchar_t*)str != L'%'; };
|
||||||
NewHook(hp, "Ren'py");
|
NewHook(hp, "Ren'py");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user