Support D3D8::SetRenderState_TwoSidedLighting() in XDK 5344

This commit is contained in:
Echelon9 2013-08-10 13:55:59 +10:00
parent c4d56a1237
commit 8f3ca9e065
1 changed files with 50 additions and 0 deletions

View File

@ -1555,6 +1555,42 @@ SOOVPA<12> IDirect3DDevice8_SetSoftDisplayFilter_1_0_5344 =
}
};
// ******************************************************************
// * IDirect3DDevice8_SetTextureState_TwoSidedLighting
// ******************************************************************
SOOVPA<13> IDirect3DDevice8_SetTextureState_TwoSidedLighting_1_0_5344 =
{
0, // Large == 0
13, // Count == 13
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_SetTextureState_TwoSidedLighting+0x07 : mov eax, [esi]
{ 0x07, 0x8B }, // (Offset,Value)-Pair #1
{ 0x08, 0x06 }, // (Offset,Value)-Pair #2
// IDirect3DDevice8_SetTextureState_TwoSidedLighting+0x09 : cmp eax, [esi+4]
{ 0x09, 0x3B }, // (Offset,Value)-Pair #3
{ 0x0A, 0x46 }, // (Offset,Value)-Pair #4
{ 0x0B, 0x04 }, // (Offset,Value)-Pair #5
// ***
// IDirect3DDevice8_SetTextureState_TwoSidedLighting+0x18 : mov dword ptr [eax], 417C4h
{ 0x18, 0xC7 }, // (Offset,Value)-Pair #6
{ 0x19, 0x00 }, // (Offset,Value)-Pair #7
{ 0x1A, 0xC4 }, // (Offset,Value)-Pair #8
{ 0x1B, 0x17 }, // (Offset,Value)-Pair #9
{ 0x1C, 0x04 }, // (Offset,Value)-Pair #10
{ 0x1D, 0x00 }, // (Offset,Value)-Pair #11
// IDirect3DDevice8_SetTextureState_TwoSidedLighting+0x7D : retn 0x04
{ 0x7D, 0xC2 }, // (Offset,Value)-Pair #12
{ 0x7E, 0x04 }, // (Offset,Value)-Pair #13
}
};
// ******************************************************************
// * IDirect3DDevice8_Unknown1
// ******************************************************************
@ -3243,6 +3279,20 @@ OOVPATable D3D8_1_0_5233[] =
"EmuIDirect3DDevice8_SetRenderState_TwoSidedLighting"
#endif
},
// ******
// Duplicate references are normally bad, but this XDK is aliased to XDK 5344
// until such time as a separate XDK file is generated for 5344, this will have to do
// ******
// IDirect3DDevice8::SetRenderState_TwoSidedLighting (* targeting 5344 *)
{
(OOVPA*)&IDirect3DDevice8_SetTextureState_TwoSidedLighting_1_0_5344,
XTL::EmuIDirect3DDevice8_SetTextureState_TwoSidedLighting,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_TwoSidedLighting"
#endif
},
// IDirect3DDevice8::SetRenderState_FrontFace (* unchanged since 4134 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_FrontFace_1_0_4134,