*** empty log message ***

This commit is contained in:
Aaron Robinson 2003-06-18 01:27:33 +00:00
parent 31bf78f3d1
commit 7e99255a32
3 changed files with 83 additions and 10 deletions

View File

@ -51,16 +51,21 @@ typedef D3DFORMAT X_D3DFORMAT;
// ******************************************************************
inline D3DFORMAT EmuXB2PC_D3DFormat(X_D3DFORMAT Format)
{
if(Format == 0)
return (D3DFORMAT)NULL;
else if(Format == 0x07)
return D3DFMT_X8R8G8B8;
else if(Format == 0x06)
return D3DFMT_A8R8G8B8;
else if(Format == 0x2A)
return D3DFMT_D24S8;
else if(Format == 0x2C)
return D3DFMT_D16;
switch(Format)
{
case 0:
return (D3DFORMAT)NULL;
case 0x06:
return D3DFMT_A8R8G8B8;
case 0x07:
return D3DFMT_X8R8G8B8;
case 0x0E:
return D3DFMT_DXT2;
case 0x2A:
return D3DFMT_D24S8;
case 0x2C:
return D3DFMT_D16;
}
EmuCleanup("EmuXB2PC_D3DFormat: Unknown Format (%d)", Format);
@ -317,6 +322,11 @@ HRESULT WINAPI EmuIDirect3D8_GetAdapterDisplayMode
X_D3DDISPLAYMODE *pMode
);
// ******************************************************************
// * func: EmuIDirect3D8_KickOffAndWaitForIdle
// ******************************************************************
VOID WINAPI EmuIDirect3D8_KickOffAndWaitForIdle();
// ******************************************************************
// * func: EmuIDirect3DDevice8_CopyRects
// ******************************************************************

View File

@ -91,6 +91,38 @@ SOOVPA<13> IDirect3D8_GetAdapterDisplayMode_1_0_4627 =
}
};
// ******************************************************************
// * IDirect3D8_KickOffAndWaitForIdle
// ******************************************************************
SOOVPA<9> IDirect3D8_KickOffAndWaitForIdle_1_0_4627 =
{
0, // Large == 0
9, // Count == 9
{
// IDirect3D8_KickOffAndWaitForIdle+0x00 : mov eax, [addr]
{ 0x00, 0xA1 }, // (Offset,Value)-Pair #1
// IDirect3D8_KickOffAndWaitForIdle+0x05 : mov ecx, [eax+0x30]
{ 0x05, 0x8B }, // (Offset,Value)-Pair #2
{ 0x06, 0x48 }, // (Offset,Value)-Pair #3
{ 0x07, 0x30 }, // (Offset,Value)-Pair #4
// IDirect3D8_KickOffAndWaitForIdle+0x08 : push 2
{ 0x08, 0x6A }, // (Offset,Value)-Pair #5
{ 0x09, 0x02 }, // (Offset,Value)-Pair #6
// IDirect3D8_KickOffAndWaitForIdle+0x0A : push ecx
{ 0x0A, 0x51 }, // (Offset,Value)-Pair #7
// IDirect3D8_KickOffAndWaitForIdle+0x0B : call [addr]
{ 0x0B, 0xE8 }, // (Offset,Value)-Pair #8
// IDirect3D8_KickOffAndWaitForIdle+0x10 : retn
{ 0x10, 0xC3 }, // (Offset,Value)-Pair #9
}
};
// ******************************************************************
// * IDirect3DDevice8_GetRenderTarget2
// ******************************************************************
@ -886,6 +918,16 @@ OOVPATable D3D8_1_0_4627[] =
"EmuIDirect3D8_GetAdapterDisplayMode"
#endif
},
// IDirect3D8::KickOffAndWaitForIdle
{
(OOVPA*)&IDirect3D8_KickOffAndWaitForIdle_1_0_4627,
xd3d8::EmuIDirect3D8_KickOffAndWaitForIdle,
#ifdef _DEBUG_TRACE
"EmuIDirect3D8_KickOffAndWaitForIdle"
#endif
},
// IDirect3DDevice8::GetRenderTarget2
{
(OOVPA*)&IDirect3DDevice8_GetRenderTarget2_1_0_4627,

View File

@ -571,6 +571,27 @@ HRESULT WINAPI xd3d8::EmuIDirect3D8_GetAdapterDisplayMode
return hRet;
}
// ******************************************************************
// * func: EmuIDirect3D8_KickOffAndWaitForIdle
// ******************************************************************
VOID WINAPI xd3d8::EmuIDirect3D8_KickOffAndWaitForIdle()
{
EmuSwapFS(); // Win2k/XP FS
// ******************************************************************
// * debug trace
// ******************************************************************
#ifdef _DEBUG_TRACE
{
printf("EmuD3D8 (0x%X): EmuIDirect3D8_KickOffAndWaitForIdle()\n", GetCurrentThreadId());
}
#endif
EmuSwapFS(); // XBox FS
return;
}
// ******************************************************************
// * func: EmuIDirect3DDevice8_CopyRects
// ******************************************************************