mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
Fix for User Tracks assuming QuickTime is present with autoscan on
This commit is contained in:
parent
4bdbdb5a6c
commit
c95162ace2
1 changed files with 19 additions and 0 deletions
|
@ -1756,6 +1756,20 @@ PassDayColoursToShader_Iterate:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __declspec(naked) UserTracksFix()
|
||||||
|
{
|
||||||
|
_asm
|
||||||
|
{
|
||||||
|
push [esp+4]
|
||||||
|
mov eax, 4D7C60h
|
||||||
|
call eax
|
||||||
|
mov ecx, 0B6B970h
|
||||||
|
mov eax, 4F35B0h
|
||||||
|
call eax
|
||||||
|
retn 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
__forceinline void Patch_SA_10()
|
__forceinline void Patch_SA_10()
|
||||||
{
|
{
|
||||||
using namespace MemoryVP;
|
using namespace MemoryVP;
|
||||||
|
@ -1922,6 +1936,11 @@ __forceinline void Patch_SA_10()
|
||||||
Patch<DWORD>(0x733B55, EXPAND_ALPHA_ENTITY_LISTS * 20);
|
Patch<DWORD>(0x733B55, EXPAND_ALPHA_ENTITY_LISTS * 20);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// User Tracks fix
|
||||||
|
InjectHook(0x4D9B66, UserTracksFix);
|
||||||
|
InjectHook(0x4D9BB5, 0x4F2FD0);
|
||||||
|
//Nop(0x4D9BB5, 5);
|
||||||
|
|
||||||
// Fixed police scanner names
|
// Fixed police scanner names
|
||||||
char* pScannerNames = *(char**)0x4E72D4;
|
char* pScannerNames = *(char**)0x4E72D4;
|
||||||
strncpy(pScannerNames + (8*113), "WESTP", 8);
|
strncpy(pScannerNames + (8*113), "WESTP", 8);
|
||||||
|
|
Loading…
Reference in a new issue