VC/SA: Allow extra6 to be picked with component rule 4 (any)

This commit is contained in:
Silent 2019-12-25 15:36:59 +01:00
parent 3555242811
commit 7a96e5eefb
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
2 changed files with 12 additions and 0 deletions

View file

@ -4234,6 +4234,10 @@ void Patch_SA_10()
Nop( 0x4C97B1 + 5, 9 );
// Allow extra6 to be picked with component rule 4 (any)
Patch<uint32_t>( 0x4C8010 + 4, 6 );
#if FULL_PRECISION_D3D
// Test - full precision D3D device
Patch<uint8_t>( 0x7F672B+1, *(uint8_t*)(0x7F672B+1) | D3DCREATE_FPU_PRESERVE );

View file

@ -1114,6 +1114,14 @@ void Patch_VC_Common()
}
}
// Allow extra6 to be picked with component rule 4 (any)
{
void* extraMult6 = get_pattern( "D8 0D ? ? ? ? D9 7C 24 04 8B 44 24 04 80 4C 24 05 0C D9 6C 24 04 89 44 24 04 DB 5C 24 08 D9 6C 24 04 8B 44 24 08 83 C4 10 5D", 2 );
static const float MULT_6 = 6.0f;
Patch( extraMult6, &MULT_6 );
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)