From 5c48418aae9411ffa842e25cfb65cbea39c4ec09 Mon Sep 17 00:00:00 2001 From: Silent Date: Thu, 21 Sep 2017 19:15:13 +0200 Subject: [PATCH] Use VP overloads explicitly for CdStreamSyncOnObject in case it's in hoodlum code space and it's not unprotected --- SilentPatchSA/SilentPatchSA.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 68f13b4..820f20d 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -3842,9 +3842,9 @@ void Patch_SA_10() const uint8_t orgCode[] = { 0x8B, 0x46, 0x04, 0x85, 0xC0, 0x74, 0x10, 0xC6, 0x46, 0x0D, 0x01 }; if ( memcmp( orgCode, (void*)address, sizeof(orgCode) ) == 0 ) { - Patch( address, { 0x56, 0xFF, 0x15 } ); - Patch( address + 3, &CdStreamSync::CdStreamSyncOnObject ); - Patch( address + 3 + 4, { 0x5E, 0xC3 } ); + VP::Patch( address, { 0x56, 0xFF, 0x15 } ); + VP::Patch( address + 3, &CdStreamSync::CdStreamSyncOnObject ); + VP::Patch( address + 3 + 4, { 0x5E, 0xC3 } ); } }