From e037250b1e2b016a2abcf12dae77fbdcaf6214aa Mon Sep 17 00:00:00 2001 From: Silent Date: Wed, 12 Apr 2017 21:40:46 +0200 Subject: [PATCH] can use get_pattern here --- SilentPatchSA/SilentPatchSA.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 8f16fa8..be911d1 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -4655,9 +4655,9 @@ void Patch_SA_NewSteam_Common() // Linear filtering on script sprites { - auto drawScriptSprites = pattern( "81 EC 94 01 00 00 53 56 57 50" ).get_one(); - ReadCall( drawScriptSprites.get(10), orgDrawScriptSpritesAndRectangles ); - InjectHook( drawScriptSprites.get(10), DrawScriptSpritesAndRectangles ); + void* drawScriptSprites = get_pattern( "81 EC 94 01 00 00 53 56 57 50", 10 ); + ReadCall( drawScriptSprites, orgDrawScriptSpritesAndRectangles ); + InjectHook( drawScriptSprites, DrawScriptSpritesAndRectangles ); } }