diff --git a/SilentPatch/MemoryMgr.h b/SilentPatch/MemoryMgr.h index 21a28d9..c45e178 100644 --- a/SilentPatch/MemoryMgr.h +++ b/SilentPatch/MemoryMgr.h @@ -40,7 +40,7 @@ inline AT DynBaseAddress(AT address) return (ptrdiff_t)GetModuleHandle(nullptr) - 0x400000 + address; } -#if defined SILENTPATCH_III_VER +#if defined _GTA_III inline void InitializeVersions() { @@ -76,7 +76,7 @@ inline T AddressByVersion(DWORD address10, DWORD address11, DWORD addressSteam) } } -#elif defined SILENTPATCH_VC_VER +#elif defined _GTA_VC inline void InitializeVersions() { @@ -112,7 +112,7 @@ inline T AddressByVersion(DWORD address10, DWORD address11, DWORD addressSteam) } } -#elif defined SILENTPATCH_SA_VER +#elif defined _GTA_SA inline void InitializeVersions() { diff --git a/SilentPatch/Timer.cpp b/SilentPatch/Timer.cpp index c3a42f4..e5fbeb5 100644 --- a/SilentPatch/Timer.cpp +++ b/SilentPatch/Timer.cpp @@ -124,7 +124,7 @@ void CTimer::Update() //*m_snTimeInMillisecondsNonClipped += nDelta; } -#ifdef SILENTPATCH_III_VER +#ifdef _GTA_III if ( *ms_fTimeStep < 0.01f && !*m_UserPause && !*m_CodePause ) #else if ( *ms_fTimeStep < 0.01f && !*m_UserPause && !*m_CodePause && !*bSnapShotActive ) diff --git a/SilentPatchIII/SilentPatchIII.vcxproj b/SilentPatchIII/SilentPatchIII.vcxproj index 52676df..546e4c6 100644 --- a/SilentPatchIII/SilentPatchIII.vcxproj +++ b/SilentPatchIII/SilentPatchIII.vcxproj @@ -67,7 +67,7 @@ Level4 Disabled MultiThreadedDebug - SILENTPATCH_III_VER;%(PreprocessorDefinitions) + _GTA_III;%(PreprocessorDefinitions) ..\SilentPatch Use StdAfx.h @@ -95,7 +95,7 @@ AnySuitable Speed true - SILENTPATCH_III_VER;NDEBUG;%(PreprocessorDefinitions) + _GTA_III;NDEBUG;%(PreprocessorDefinitions) ..\SilentPatch Use StdAfx.h diff --git a/SilentPatchSA/SilentPatchSA.vcxproj b/SilentPatchSA/SilentPatchSA.vcxproj index abca7f3..dda3f32 100644 --- a/SilentPatchSA/SilentPatchSA.vcxproj +++ b/SilentPatchSA/SilentPatchSA.vcxproj @@ -54,7 +54,7 @@ Level4 Disabled MultiThreadedDebug - SILENTPATCH_SA_VER;%(PreprocessorDefinitions) + _GTA_SA;%(PreprocessorDefinitions) D:\RWSDK\Graphics\rwsdk\include\d3d9;..\SilentPatch;$(DXSDK_DIR)\include Use StdAfxSA.h @@ -83,7 +83,7 @@ copy /y "$(TargetPath)" "D:\gry\GTA San Andreas clean\scripts\newsteam_r2_lowvio AnySuitable Speed true - SILENTPATCH_SA_VER;NDEBUG;%(PreprocessorDefinitions) + _GTA_SA;NDEBUG;%(PreprocessorDefinitions) true MultiThreaded D:\RWSDK\Graphics\rwsdk\include\d3d9;..\SilentPatch;$(DXSDK_DIR)\include diff --git a/SilentPatchVC/SilentPatchVC.vcxproj b/SilentPatchVC/SilentPatchVC.vcxproj index 7c3b650..31cfd33 100644 --- a/SilentPatchVC/SilentPatchVC.vcxproj +++ b/SilentPatchVC/SilentPatchVC.vcxproj @@ -52,7 +52,7 @@ Level4 Disabled - SILENTPATCH_VC_VER;%(PreprocessorDefinitions) + _GTA_VC;%(PreprocessorDefinitions) MultiThreadedDebug ..\SilentPatch Use @@ -74,7 +74,7 @@ MaxSpeed true true - SILENTPATCH_VC_VER;NDEBUG;%(PreprocessorDefinitions) + _GTA_VC;NDEBUG;%(PreprocessorDefinitions) true MultiThreaded AnySuitable