forked from Public-Mirror/Textractor
update ShinaRio 2.50+
This commit is contained in:
parent
fd8a090e28
commit
0bc23ba2c7
@ -5803,7 +5803,7 @@ bool InsertShinaHook()
|
|||||||
trigger_fun = [](LPVOID funcAddr, DWORD, DWORD stack)
|
trigger_fun = [](LPVOID funcAddr, DWORD, DWORD stack)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
if (funcAddr != GetGlyphOutlineA) return false;
|
if (funcAddr != GetGlyphOutlineA && funcAddr != GetTextExtentPoint32A) return false;
|
||||||
for (int i = 0; i < 100; ++i)
|
for (int i = 0; i < 100; ++i)
|
||||||
{
|
{
|
||||||
// Address of text is somewhere on stack in call to func. Search for it.
|
// Address of text is somewhere on stack in call to func. Search for it.
|
||||||
@ -5817,7 +5817,7 @@ bool InsertShinaHook()
|
|||||||
hp.type = DIRECT_READ;
|
hp.type = DIRECT_READ;
|
||||||
hp.address = addr;
|
hp.address = addr;
|
||||||
ConsoleOutput("Textractor: triggered: adding dynamic reader");
|
ConsoleOutput("Textractor: triggered: adding dynamic reader");
|
||||||
NewHook(hp, "READ");
|
NewHook(hp, "ShinaRio READ");
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user