From 6fa6ff2afe16db75bfdcff8b0dda47d400ec91ba Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 10 Apr 2017 13:23:39 +0200 Subject: [PATCH] Update new dirt fix for steam --- SilentPatchSA/ModelInfoSA.cpp | 2 +- SilentPatchSA/SilentPatchSA.cpp | 1 + SilentPatchSA/versionmeta.props | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SilentPatchSA/ModelInfoSA.cpp b/SilentPatchSA/ModelInfoSA.cpp index f140d8a..ed73220 100644 --- a/SilentPatchSA/ModelInfoSA.cpp +++ b/SilentPatchSA/ModelInfoSA.cpp @@ -15,7 +15,7 @@ CBaseModelInfo** const ms_modelInfoPtrs = *AddressByVersion const uint32_t m_numModelInfoPtrs = *AddressByVersion(0x4C5956+2, 0, 0); -static RwTexture** const ms_aDirtTextures = *AddressByVersion( 0x5D5DCC + 3, 0, 0 /*TODO*/); +static RwTexture** const ms_aDirtTextures = *AddressByVersion( 0x5D5DCC + 3, 0, 0x5F259C + 3 ); void RemapDirt( CVehicleModelInfo* modelInfo, uint32_t dirtID ) { RpMaterial** materials = modelInfo->m_numDirtMaterials > CVehicleModelInfo::IN_PLACE_BUFFER_DIRT_SIZE ? modelInfo->m_dirtMaterials : modelInfo->m_staticDirtMaterials; diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 7cf6ffb..0cb9eb6 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -2878,6 +2878,7 @@ BOOL InjectDelayedPatches_Steam() // Cars getting dirty // Only 1.0 and Steam + InjectHook( 0x5F2580, RemapDirt, PATCH_JUMP ); InjectHook(0x4D3F4D, &CVehicleModelInfo::FindEditableMaterialList, PATCH_CALL); Patch(0x4D3F52, 0x0FEBCE8B); } diff --git a/SilentPatchSA/versionmeta.props b/SilentPatchSA/versionmeta.props index 2766fd6..f8e462e 100644 --- a/SilentPatchSA/versionmeta.props +++ b/SilentPatchSA/versionmeta.props @@ -6,7 +6,7 @@ .asi SilentPatch for San Andreas 29 - 1 + 2 2014-2017