mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +05:00
can use get_pattern here
This commit is contained in:
parent
47323e014d
commit
e037250b1e
1 changed files with 3 additions and 3 deletions
|
@ -4655,9 +4655,9 @@ void Patch_SA_NewSteam_Common()
|
||||||
|
|
||||||
// Linear filtering on script sprites
|
// Linear filtering on script sprites
|
||||||
{
|
{
|
||||||
auto drawScriptSprites = pattern( "81 EC 94 01 00 00 53 56 57 50" ).get_one();
|
void* drawScriptSprites = get_pattern( "81 EC 94 01 00 00 53 56 57 50", 10 );
|
||||||
ReadCall( drawScriptSprites.get<int>(10), orgDrawScriptSpritesAndRectangles );
|
ReadCall( drawScriptSprites, orgDrawScriptSpritesAndRectangles );
|
||||||
InjectHook( drawScriptSprites.get<int>(10), DrawScriptSpritesAndRectangles );
|
InjectHook( drawScriptSprites, DrawScriptSpritesAndRectangles );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue