Fix for User Tracks assuming QuickTime is present with autoscan on

This commit is contained in:
Silent 2014-06-09 19:25:47 +02:00
parent 4bdbdb5a6c
commit c95162ace2

View file

@ -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()
{
using namespace MemoryVP;
@ -1922,6 +1936,11 @@ __forceinline void Patch_SA_10()
Patch<DWORD>(0x733B55, EXPAND_ALPHA_ENTITY_LISTS * 20);
#endif
// User Tracks fix
InjectHook(0x4D9B66, UserTracksFix);
InjectHook(0x4D9BB5, 0x4F2FD0);
//Nop(0x4D9BB5, 5);
// Fixed police scanner names
char* pScannerNames = *(char**)0x4E72D4;
strncpy(pScannerNames + (8*113), "WESTP", 8);