mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 06:43:01 +05:00
VC/SA: Allow extra6 to be picked with component rule 4 (any)
This commit is contained in:
parent
3555242811
commit
7a96e5eefb
2 changed files with 12 additions and 0 deletions
|
@ -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 );
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue