This commit is contained in:
Aaron Robinson 2004-03-31 06:21:17 +00:00
parent d9e65ae2f2
commit 8e452e841f
17 changed files with 4029 additions and 33 deletions

BIN
Cxbx.opt

Binary file not shown.

View File

@ -1,5 +1,5 @@
# Microsoft Developer Studio Project File - Name="CxbxKrnl" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# Microsoft Developer Studio Generated Build File, Format Version 60000
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
@ -161,6 +161,10 @@ SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\D3D8.1.0.4627.h
# End Source File
# Begin Source File
SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\D3D8.1.0.5849.h
# End Source File
# Begin Source File
SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.3936.h
# End Source File
# Begin Source File
@ -177,6 +181,10 @@ SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.4627.h
# End Source File
# Begin Source File
SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.5849.h
# End Source File
# Begin Source File
SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\Xapi.1.0.3911.h
# End Source File
# Begin Source File
@ -201,6 +209,10 @@ SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\Xapi.1.0.4627.h
# End Source File
# Begin Source File
SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\Xapi.1.0.5849.h
# End Source File
# Begin Source File
SOURCE=.\Include\Win32\CxbxKrnl\HLEDataBase\XG.1.0.4361.h
# End Source File
# Begin Source File
@ -395,6 +407,11 @@ SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\D3D8.1.0.4627.inl
# End Source File
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\D3D8.1.0.5849.inl
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.3936.inl
# PROP Exclude_From_Build 1
# End Source File
@ -406,15 +423,7 @@ SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.4361.inl
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.4432.inl
!IF "$(CFG)" == "CxbxKrnl - Win32 Release"
!ELSEIF "$(CFG)" == "CxbxKrnl - Win32 Debug"
# PROP Exclude_From_Build 1
!ENDIF
# End Source File
# Begin Source File
@ -423,6 +432,11 @@ SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.4627.inl
# End Source File
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\DSound.1.0.5849.inl
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\Xapi.1.0.3911.inl
# PROP Exclude_From_Build 1
# End Source File
@ -453,6 +467,11 @@ SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\Xapi.1.0.4627.inl
# End Source File
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\Xapi.1.0.5849.inl
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=.\Source\Win32\CxbxKrnl\HLEDataBase\XG.1.0.4361.inl
# PROP Exclude_From_Build 1
# End Source File

View File

@ -67,6 +67,11 @@ HRESULT WINAPI EmuIDirect3D8_CreateDevice
IDirect3DDevice8 **ppReturnedDeviceInterface
);
// ******************************************************************
// * func: EmuIDirect3D8_CheckDeviceFormat
// ******************************************************************
VOID WINAPI EmuIDirect3DDevice8_GetCreationParameters(D3DDEVICE_CREATION_PARAMETERS *pParameters);
// ******************************************************************
// * func: EmuIDirect3D8_CheckDeviceFormat
// ******************************************************************

View File

@ -280,6 +280,11 @@ XCALCSIG_SIGNATURE, *PXCALCSIG_SIGNATURE;
#define XCALCSIG_FLAG_NON_ROAMABLE (0x00000001)
// ******************************************************************
// * func: EmuXapiApplyKernelPatches
// ******************************************************************
VOID WINAPI EmuXapiApplyKernelPatches();
// ******************************************************************
// * func: EmuRtlCreateHeap
// ******************************************************************

View File

@ -40,16 +40,19 @@
#include "Xapi.1.0.4361.h"
#include "Xapi.1.0.4432.h"
#include "Xapi.1.0.4627.h"
#include "Xapi.1.0.5849.h"
#include "D3D8.1.0.3925.h"
#include "D3D8.1.0.4034.h"
#include "D3D8.1.0.4134.h"
#include "D3D8.1.0.4361.h"
#include "D3D8.1.0.4432.h"
#include "D3D8.1.0.4627.h"
#include "D3D8.1.0.5849.h"
#include "DSound.1.0.3936.h"
#include "DSound.1.0.4361.h"
#include "DSound.1.0.4432.h"
#include "DSound.1.0.4627.h"
#include "DSound.1.0.5849.h"
#include "XG.1.0.4361.h"
#include "XG.1.0.4627.h"
#include "XNet.1.0.3911.h"

View File

@ -0,0 +1,44 @@
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->CxbxKrnl->D3D8.1.0.5849.h
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them under the terms of the GNU General Public
// * License as published by the Free Software Foundation; either
// * version 2 of the license, or (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
#ifndef D3D8_1_0_5849_H
#define D3D8_1_0_5849_H
#include "OOVPA.h"
extern SOOVPA<13> IDirect3DDevice8_SetRenderState_CullMode_1_0_5849;
extern OOVPATable D3D8_1_0_5849[];
extern uint32 D3D8_1_0_5849_SIZE;
#endif

View File

@ -0,0 +1,42 @@
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->CxbxKrnl->DSound.1.0.5849.h
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them under the terms of the GNU General Public
// * License as published by the Free Software Foundation; either
// * version 2 of the license, or (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
#ifndef DSOUND_1_0_5849_H
#define DSOUND_1_0_5849_H
#include "OOVPA.h"
extern OOVPATable DSOUND_1_0_5849[];
extern uint32 DSOUND_1_0_5849_SIZE;
#endif

View File

@ -0,0 +1,43 @@
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->CxbxKrnl->Xapi.1.0.5849.h
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them under the terms of the GNU General Public
// * License as published by the Free Software Foundation; either
// * version 2 of the license, or (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
#ifndef XAPI_1_0_5849_H
#define XAPI_1_0_5849_H
#include "OOVPA.h"
extern SOOVPA<8> XapiInitProcess_1_0_5849;
extern OOVPATable XAPI_1_0_5849[];
extern uint32 XAPI_1_0_5849_SIZE;
#endif

View File

@ -401,7 +401,9 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
if(bXRefFirstPass)
{
if(strcmp("XAPILIB", szLibraryName) == 0 && MajorVersion == 1 && MinorVersion == 0 && (BuildVersion == 3911 || BuildVersion == 4034 || BuildVersion == 4134 || BuildVersion == 4361 || BuildVersion == 4432 || BuildVersion == 4627))
if(strcmp("XAPILIB", szLibraryName) == 0 && MajorVersion == 1 && MinorVersion == 0 &&
(BuildVersion == 3911 || BuildVersion == 4034 || BuildVersion == 4134 || BuildVersion == 4361
|| BuildVersion == 4432 || BuildVersion == 4627 || BuildVersion == 5849))
{
uint32 lower = pXbeHeader->dwBaseAddr;
uint32 upper = pXbeHeader->dwBaseAddr + pXbeHeader->dwSizeofImage;
@ -409,25 +411,43 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
// locate XapiProcessHeap
{
void *pFunc = 0;
uint ProcessHeapOffs;
uint RtlCreateHeapOffs;
if(BuildVersion >= 4361)
if(BuildVersion >= 5849)
{
pFunc = EmuLocateFunction((OOVPA*)&XapiInitProcess_1_0_5849, lower, upper);
ProcessHeapOffs = 0x51;
RtlCreateHeapOffs = 0x4A;
}
else if(BuildVersion >= 4361)
{
pFunc = EmuLocateFunction((OOVPA*)&XapiInitProcess_1_0_4361, lower, upper);
ProcessHeapOffs = 0x3E;
RtlCreateHeapOffs = 0x37;
}
else // 3911, 4034, 4134
{
pFunc = EmuLocateFunction((OOVPA*)&XapiInitProcess_1_0_3911, lower, upper);
ProcessHeapOffs = 0x3E;
RtlCreateHeapOffs = 0x37;
}
if(pFunc != 0)
if(pFunc != 0)
{
XTL::EmuXapiProcessHeap = *(PVOID**)((uint32)pFunc + 0x3E);
XTL::EmuXapiProcessHeap = *(PVOID**)((uint32)pFunc + ProcessHeapOffs);
XTL::g_pRtlCreateHeap = *(XTL::pfRtlCreateHeap*)((uint32)pFunc + 0x37);
XTL::g_pRtlCreateHeap = (XTL::pfRtlCreateHeap)((uint32)pFunc + (uint32)XTL::g_pRtlCreateHeap + 0x37 + 0x04);
XTL::g_pRtlCreateHeap = *(XTL::pfRtlCreateHeap*)((uint32)pFunc + RtlCreateHeapOffs);
XTL::g_pRtlCreateHeap = (XTL::pfRtlCreateHeap)((uint32)pFunc + (uint32)XTL::g_pRtlCreateHeap + RtlCreateHeapOffs + 0x04);
DbgPrintf("EmuMain (0x%X): 0x%.08X -> EmuXapiProcessHeap\n", GetCurrentThreadId(), XTL::EmuXapiProcessHeap);
DbgPrintf("EmuMain (0x%X): 0x%.08X -> g_pRtlCreateHeap\n", GetCurrentThreadId(), XTL::g_pRtlCreateHeap);
}
}
}
else if(strcmp("D3D8", szLibraryName) == 0 && MajorVersion == 1 && MinorVersion == 0 && (BuildVersion == 3925 || BuildVersion == 4134 || BuildVersion == 4361 || BuildVersion == 4432 || BuildVersion == 4627))
else if(strcmp("D3D8", szLibraryName) == 0 && MajorVersion == 1 && MinorVersion == 0 &&
(BuildVersion == 3925 || BuildVersion == 4134 || BuildVersion == 4361 || BuildVersion == 4432
|| BuildVersion == 4627 || BuildVersion == 5849))
{
uint32 lower = pXbeHeader->dwBaseAddr;
uint32 upper = pXbeHeader->dwBaseAddr + pXbeHeader->dwSizeofImage;
@ -436,8 +456,10 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
if(BuildVersion == 3925)
pFunc = EmuLocateFunction((OOVPA*)&IDirect3DDevice8_SetRenderState_CullMode_1_0_3925, lower, upper);
else
else if(BuildVersion < 5849)
pFunc = EmuLocateFunction((OOVPA*)&IDirect3DDevice8_SetRenderState_CullMode_1_0_4134, lower, upper);
else
pFunc = EmuLocateFunction((OOVPA*)&IDirect3DDevice8_SetRenderState_CullMode_1_0_5849, lower, upper);
// locate D3DDeferredRenderState
if(pFunc != 0)
@ -471,6 +493,12 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
XTL::EmuD3DDeferredRenderState = (DWORD*)(*(DWORD*)((uint32)pFunc + 0x2B) - 0x24C + 92*4);
patchOffset = 162*4 - 92*4;
}
else if(BuildVersion == 5849)
{
// WARNING: Not thoroughly tested (just seemed very correct right away)
XTL::EmuD3DDeferredRenderState = (DWORD*)(*(DWORD*)((uint32)pFunc + 0x2B) - 0x24C + 92*4);
patchOffset = 162*4 - 92*4;
}
XRefDataBase[XREF_D3DRS_STENCILCULLENABLE] = (uint32)XTL::EmuD3DDeferredRenderState + patchOffset + 0*4;
XRefDataBase[XREF_D3DRS_ROPZCMPALWAYSREAD] = (uint32)XTL::EmuD3DDeferredRenderState + patchOffset + 1*4;
@ -496,7 +524,7 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
pFunc = EmuLocateFunction((OOVPA*)&IDirect3DDevice8_SetTextureState_TexCoordIndex_1_0_4134, lower, upper);
else if(BuildVersion == 4361 || BuildVersion == 4432)
pFunc = EmuLocateFunction((OOVPA*)&IDirect3DDevice8_SetTextureState_TexCoordIndex_1_0_4361, lower, upper);
else if(BuildVersion == 4627)
else if(BuildVersion == 4627 || BuildVersion == 5849)
pFunc = EmuLocateFunction((OOVPA*)&IDirect3DDevice8_SetTextureState_TexCoordIndex_1_0_4627, lower, upper);
if(pFunc != 0)

View File

@ -53,15 +53,15 @@ namespace xboxkrnl
#include <locale.h>
// Global(s)
HWND g_hEmuWindow = NULL; // rendering window
HWND g_hEmuParent = NULL; // rendering window parent
XTL::LPDIRECT3DDEVICE8 g_pD3DDevice8 = NULL; // Direct3D8 Device
XTL::LPDIRECTDRAWSURFACE7 g_pDDSPrimary = NULL; // DirectDraw7 Primary Surface
XTL::LPDIRECTDRAWSURFACE7 g_pDDSOverlay7 = NULL; // DirectDraw7 Overlay Surface
XTL::LPDIRECTDRAWCLIPPER g_pDDClipper = NULL; // DirectDraw7 Clipper
DWORD g_CurrentVertexShader = 0;
BOOL g_bFakePixelShaderLoaded = FALSE;
BOOL g_bIsFauxFullscreen = FALSE;
HWND g_hEmuWindow = NULL; // rendering window
HWND g_hEmuParent = NULL; // rendering window parent
XTL::LPDIRECT3DDEVICE8 g_pD3DDevice8 = NULL; // Direct3D8 Device
XTL::LPDIRECTDRAWSURFACE7 g_pDDSPrimary = NULL; // DirectDraw7 Primary Surface
XTL::LPDIRECTDRAWSURFACE7 g_pDDSOverlay7 = NULL; // DirectDraw7 Overlay Surface
XTL::LPDIRECTDRAWCLIPPER g_pDDClipper = NULL; // DirectDraw7 Clipper
DWORD g_CurrentVertexShader = 0;
BOOL g_bFakePixelShaderLoaded = FALSE;
BOOL g_bIsFauxFullscreen = FALSE;
// Static Function(s)
static BOOL WINAPI EmuEnumDisplayDevices(GUID FAR *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm);
@ -1048,6 +1048,29 @@ HRESULT WINAPI XTL::EmuIDirect3D8_CreateDevice
return g_EmuCDPD.hRet;
}
// ******************************************************************
// * func: EmuIDirect3D8_CheckDeviceFormat
// ******************************************************************
VOID WINAPI XTL::EmuIDirect3DDevice8_GetCreationParameters(D3DDEVICE_CREATION_PARAMETERS *pParameters)
{
EmuSwapFS(); // Win2k/XP FS
DbgPrintf("EmuD3D8 (0x%X): EmuIDirect3DDevice8_GetCreationParameters\n"
"(\n"
" pParameters : 0x%.08X\n"
");\n",
GetCurrentThreadId(), pParameters);
pParameters->AdapterOrdinal = D3DADAPTER_DEFAULT;
pParameters->DeviceType = D3DDEVTYPE_HAL;
pParameters->hFocusWindow = NULL;
pParameters->BehaviorFlags = D3DCREATE_HARDWARE_VERTEXPROCESSING;
EmuSwapFS(); // XBox FS
return;
}
// ******************************************************************
// * func: EmuIDirect3D8_CheckDeviceFormat
// ******************************************************************

View File

@ -58,6 +58,22 @@ namespace NtDll
#include "EmuXTL.h"
// ******************************************************************
// * func: EmuXapiApplyKernelPatches
// ******************************************************************
VOID WINAPI XTL::EmuXapiApplyKernelPatches()
{
#ifdef _DEBUG_TRACE
EmuSwapFS(); // Win2k/XP FS
DbgPrintf("EmuXapi (0x%X): EmuXapiApplyKernelPatches()\n", GetCurrentThreadId());
EmuSwapFS(); // XBox FS
#endif
// we dont really feel like patching, now do we?
return;
}
// ******************************************************************
// * func: EmuRtlCreateHeap
// ******************************************************************

View File

@ -46,16 +46,19 @@
#include "HLEDataBase/Xapi.1.0.4361.inl"
#include "HLEDataBase/Xapi.1.0.4432.inl"
#include "HLEDataBase/Xapi.1.0.4627.inl"
#include "HLEDataBase/Xapi.1.0.5849.inl"
#include "HLEDataBase/D3D8.1.0.3925.inl"
#include "HLEDataBase/D3D8.1.0.4034.inl"
#include "HLEDataBase/D3D8.1.0.4134.inl"
#include "HLEDataBase/D3D8.1.0.4361.inl"
#include "HLEDataBase/D3D8.1.0.4432.inl"
#include "HLEDataBase/D3D8.1.0.4627.inl"
#include "HLEDataBase/D3D8.1.0.5849.inl"
#include "HLEDataBase/DSound.1.0.3936.inl"
#include "HLEDataBase/DSound.1.0.4361.inl"
#include "HLEDataBase/DSound.1.0.4432.inl"
#include "HLEDataBase/DSound.1.0.4627.inl"
#include "HLEDataBase/DSound.1.0.5849.inl"
#include "HLEDataBase/XG.1.0.4361.inl"
#include "HLEDataBase/XG.1.0.4627.inl"
#include "HLEDataBase/XNet.1.0.3911.inl"
@ -108,6 +111,13 @@ HLEData HLEDataBase[] =
XAPI_1_0_4627,
XAPI_1_0_4627_SIZE
},
// Xapilib Version 1.0.5849
{
"XAPILIB",
1, 0, 5849,
XAPI_1_0_5849,
XAPI_1_0_5849_SIZE
},
// D3D8 Version 1.0.3925
{
"D3D8",
@ -150,6 +160,13 @@ HLEData HLEDataBase[] =
D3D8_1_0_4627,
D3D8_1_0_4627_SIZE
},
// D3D8 Version 1.0.5849
{
"D3D8",
1, 0, 5849,
D3D8_1_0_5849,
D3D8_1_0_5849_SIZE
},
// DSound Version 1.0.3936
{
"DSOUND",
@ -178,6 +195,13 @@ HLEData HLEDataBase[] =
DSound_1_0_4627,
DSound_1_0_4627_SIZE
},
// DSound Version 1.0.5849
{
"DSOUND",
1, 0, 5849,
DSound_1_0_5849,
DSound_1_0_5849_SIZE
},
// XG Version 1.0.4361
{
"XGRAPHC",

View File

@ -0,0 +1,648 @@
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->CxbxKrnl->D3D8.1.0.5849.cpp
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them under the terms of the GNU General Public
// * License as published by the Free Software Foundation; either
// * version 2 of the license, or (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
// ******************************************************************
// * IDirect3DDevice8_GetCreationParameters
// ******************************************************************
SOOVPA<7> IDirect3DDevice8_GetCreationParameters_1_0_5849 =
{
0, // Large == 0
7, // Count == 7
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x06, 0x8B },
{ 0x0E, 0x8B },
{ 0x16, 0x4E },
{ 0x1E, 0x83 },
{ 0x26, 0x00 },
{ 0x2E, 0x5E },
{ 0x36, 0xC9 },
}
};
// ******************************************************************
// * IDirect3DDevice8_GetBackBuffer2
// ******************************************************************
SOOVPA<12> IDirect3DDevice8_GetBackBuffer2_1_0_5849 =
{
0, // Large == 0
12, // Count == 12
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_GetBackBuffer2+0x04 : cmp eax, 0xFFFFFFFF
{ 0x04, 0x83 }, // (Offset,Value)-Pair #1
{ 0x05, 0xF8 }, // (Offset,Value)-Pair #2
{ 0x06, 0xFF }, // (Offset,Value)-Pair #3
// IDirect3DDevice8_GetBackBuffer+0x0D : jnz +0x19
{ 0x0D, 0x75 }, // (Offset,Value)-Pair #4
{ 0x0E, 0x19 }, // (Offset,Value)-Pair #5
// IDirect3DDevice8_GetBackBuffer+0x18 : mov esi, [ecx+eax*4+0x21C0]
{ 0x15, 0x8B }, // (Offset,Value)-Pair #6
{ 0x16, 0xB4 }, // (Offset,Value)-Pair #7
{ 0x17, 0x81 }, // (Offset,Value)-Pair #8
{ 0x18, 0x14 }, // (Offset,Value)-Pair #9
{ 0x19, 0x1A }, // (Offset,Value)-Pair #10
// IDirect3DDevice8_GetBackBuffer+0x40 : retn 0x04
{ 0x40, 0xC2 }, // (Offset,Value)-Pair #11
{ 0x41, 0x04 }, // (Offset,Value)-Pair #12
}
};
// ******************************************************************
// * IDirect3DDevice8_GetDepthStencilSurface2
// ******************************************************************
SOOVPA<10> IDirect3DDevice8_GetDepthStencilSurface2_1_0_5849 =
{
0, // Large == 0
10, // Count == 10
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_GetDepthStencilSurface2+0x00 : mov eax, [addr]
{ 0x00, 0xA1 }, // (Offset,Value)-Pair #1
// IDirect3DDevice8_GetDepthStencilSurface2+0x05 : push esi
{ 0x05, 0x56 }, // (Offset,Value)-Pair #2
// IDirect3DDevice8_GetDepthStencilSurface2+0x06 : mov esi, [eax + 0x1A08]
{ 0x06, 0x8B }, // (Offset,Value)-Pair #3
{ 0x07, 0xB0 }, // (Offset,Value)-Pair #4
{ 0x08, 0x08 }, // (Offset,Value)-Pair #5
{ 0x09, 0x1A }, // (Offset,Value)-Pair #6
// IDirect3DDevice8_GetDepthStencilSurface2+0x0E : jnz +0x04
{ 0x0E, 0x75 }, // (Offset,Value)-Pair #7
{ 0x0F, 0x04 }, // (Offset,Value)-Pair #8
// IDirect3DDevice8_GetDepthStencilSurface2+0x15 : call [addr]
{ 0x15, 0xE8 }, // (Offset,Value)-Pair #9
// IDirect3DDevice8_GetDepthStencilSurface2+0x1D : retn
{ 0x1D, 0xC3 }, // (Offset,Value)-Pair #10
}
};
// ******************************************************************
// * IDirect3DDevice8_CreateVertexShader
// ******************************************************************
SOOVPA<8> IDirect3DDevice8_CreateVertexShader_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x1E, 0x85 },
{ 0x3E, 0xE8 },
{ 0x5E, 0x75 },
{ 0x7E, 0x04 },
{ 0x9E, 0x24 },
{ 0xBE, 0x24 },
{ 0xDE, 0x83 },
{ 0xFE, 0xC7 },
}
};
// ******************************************************************
// * IDirect3DDevice8_CreatePixelShader
// ******************************************************************
SOOVPA<8> IDirect3DDevice8_CreatePixelShader_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x07, 0x00 },
{ 0x10, 0xC0 },
{ 0x19, 0x08 },
{ 0x22, 0x78 },
{ 0x2B, 0x00 },
{ 0x34, 0xB9 },
{ 0x3D, 0x24 },
{ 0x46, 0x08 },
}
};
// ******************************************************************
// * IDirect3DDevice8_SetRenderState_CullMode
// ******************************************************************
SOOVPA<13> IDirect3DDevice8_SetRenderState_CullMode_1_0_5849 =
{
0, // Large == 0
13, // Count == 13
XREF_DXSRSCULLMODE, // XRef Is Saved
0, // XRef Not Used
{
// IDirect3DDevice8_SetRenderState_CullMode+0x19 : mov dword ptr [eax], 0x40308
{ 0x19, 0xC7 }, // (Offset,Value)-Pair #1
{ 0x1B, 0x08 }, // (Offset,Value)-Pair #2
{ 0x1C, 0x03 }, // (Offset,Value)-Pair #3
{ 0x1D, 0x04 }, // (Offset,Value)-Pair #4
// IDirect3DDevice8_SetRenderState_CullMode+0x24 : add eax, 8
{ 0x24, 0x83 }, // (Offset,Value)-Pair #5
{ 0x25, 0xC0 }, // (Offset,Value)-Pair #6
{ 0x26, 0x08 }, // (Offset,Value)-Pair #7
// IDirect3DDevice8_SetRenderState_CullMode+0x30 : retn 4
{ 0x30, 0xC2 }, // (Offset,Value)-Pair #8
{ 0x31, 0x04 }, // (Offset,Value)-Pair #9
// IDirect3DDevice8_SetRenderState_CullMode+0x53 : add edx, 0x404
{ 0x53, 0x81 }, // (Offset,Value)-Pair #10
{ 0x54, 0xC2 }, // (Offset,Value)-Pair #11
{ 0x55, 0x04 }, // (Offset,Value)-Pair #12
{ 0x56, 0x04 }, // (Offset,Value)-Pair #13
}
};
// ******************************************************************
// * IDirect3DDevice8_SetRenderState_ZEnable
// ******************************************************************
SOOVPA<8> IDirect3DDevice8_SetRenderState_ZEnable_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x13, 0x8B },
{ 0x22, 0xC9 },
{ 0x34, 0x89 },
{ 0x46, 0x0C },
{ 0x5A, 0x74 },
{ 0x6D, 0x8B },
{ 0x7C, 0xCE },
{ 0x8E, 0x00 },
}
};
// ******************************************************************
// * IDirect3DDevice8_SetTransform
// ******************************************************************
SOOVPA<8> IDirect3DDevice8_SetTransform_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x1D, 0xB9 },
{ 0x3E, 0x0F },
{ 0x5E, 0xD9 },
{ 0x7A, 0x00 },
{ 0x99, 0x83 },
{ 0xB8, 0xE0 },
{ 0xD7, 0xD9 },
{ 0xF6, 0xF6 },
}
};
// ******************************************************************
// * IDirect3DDevice8_SetMaterial
// ******************************************************************
SOOVPA<9> IDirect3DDevice8_SetMaterial_1_0_5849 =
{
0, // Large == 0
9, // Count == 9
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x04, 0x08 },
{ 0x0C, 0x81 },
{ 0x0E, 0x00 },
{ 0x10, 0x00 },
{ 0x16, 0x00 },
{ 0x1F, 0x81 },
{ 0x22, 0x90 },
{ 0x2C, 0x5E },
{ 0x2E, 0x04 },
}
};
// ******************************************************************
// * D3D8_1_0_5849
// ******************************************************************
OOVPATable D3D8_1_0_5849[] =
{
// IDirect3D8::CreateDevice (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3D8_CreateDevice_1_0_4627,
XTL::EmuIDirect3D8_CreateDevice,
#ifdef _DEBUG_TRACE
"EmuIDirect3D8_CreateDevice"
#endif
},
// IDirect3DDevice8::GetCreationParameters
{
(OOVPA*)&IDirect3DDevice8_GetCreationParameters_1_0_5849,
XTL::EmuIDirect3DDevice8_GetCreationParameters,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_GetCreationParameters"
#endif
},
// IDirect3DDevice8::GetBackBuffer2
{
(OOVPA*)&IDirect3DDevice8_GetBackBuffer2_1_0_5849,
XTL::EmuIDirect3DDevice8_GetBackBuffer2,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_GetBackBuffer2"
#endif
},
// IDirect3DDevice8::GetDepthStencilSurface2
{
(OOVPA*)&IDirect3DDevice8_GetDepthStencilSurface2_1_0_5849,
XTL::EmuIDirect3DDevice8_GetDepthStencilSurface2,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_GetDepthStencilSurface2"
#endif
},
// IDirect3DDevice8::CreateVertexShader
{
(OOVPA*)&IDirect3DDevice8_CreateVertexShader_1_0_5849,
XTL::EmuIDirect3DDevice8_CreateVertexShader,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_CreateVertexShader"
#endif
},
// IDirect3DDevice8::CreatePixelShader
{
(OOVPA*)&IDirect3DDevice8_CreatePixelShader_1_0_5849,
XTL::EmuIDirect3DDevice8_CreatePixelShader,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_CreatePixelShader"
#endif
},
// IDirect3DDevice8::GetDisplayMode (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3DDevice8_GetDisplayMode_1_0_4627,
XTL::EmuIDirect3DDevice8_GetDisplayMode,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_GetDisplayMode"
#endif
},
// IDirect3DDevice8::SetVertexData2f (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3DDevice8_SetVertexData2f_1_0_4627,
XTL::EmuIDirect3DDevice8_SetVertexData2f,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetVertexData2f"
#endif
},
// IDirect3DDevice8::SetVertexData4f (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3DDevice8_SetVertexData4f_1_0_4627,
XTL::EmuIDirect3DDevice8_SetVertexData4f,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetVertexData4f"
#endif
},
// IDirect3DDevice8::SetTextureState_TexCoordIndex (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3DDevice8_SetTextureState_TexCoordIndex_1_0_4627,
XTL::EmuIDirect3DDevice8_SetTextureState_TexCoordIndex,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetTextureState_TexCoordIndex"
#endif
},
// IDirect3DDevice8::SetTextureState_BumpEnv (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_SetTextureState_BumpEnv_1_0_4361,
XTL::EmuIDirect3DDevice8_SetTextureState_BumpEnv,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetTextureState_BumpEnv"
#endif
},
// IDirect3DDevice8::SetTextureState_BorderColor (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_SetTextureState_BorderColor_1_0_4361,
XTL::EmuIDirect3DDevice8_SetTextureState_BorderColor,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetTextureState_BorderColor"
#endif
},
// IDirect3DDevice8::SetRenderState_CullMode
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_CullMode_1_0_5849,
XTL::EmuIDirect3DDevice8_SetRenderState_CullMode,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_CullMode"
#endif
},
// IDirect3DDevice8::SetRenderState_NormalizeNormals (* unchanged since 4432 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_NormalizeNormals_1_0_4432,
XTL::EmuIDirect3DDevice8_SetRenderState_NormalizeNormals,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_NormalizeNormals"
#endif
},
// IDirect3DDevice8::SetRenderState_ZBias (* unchanged since 3925 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_ZBias_1_0_3925,
XTL::EmuIDirect3DDevice8_SetRenderState_ZBias,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_ZBias"
#endif
},
// IDirect3DDevice8::SetRenderState_EdgeAntiAlias (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_EdgeAntiAlias_1_0_4361,
XTL::EmuIDirect3DDevice8_SetRenderState_EdgeAntiAlias,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_EdgeAntiAlias"
#endif
},
// IDirect3DDevice8::SetRenderState_FillMode (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_FillMode_1_0_4361,
XTL::EmuIDirect3DDevice8_SetRenderState_FillMode,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_FillMode"
#endif
},
// IDirect3DDevice8::SetRenderState_FogColor (* unchanged since 4134 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_FogColor_1_0_4134,
XTL::EmuIDirect3DDevice8_SetRenderState_FogColor,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_FogColor"
#endif
},
// IDirect3DDevice8::SetRenderState_Simple (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_Simple_1_0_4361,
XTL::EmuIDirect3DDevice8_SetRenderState_Simple,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_Simple"
#endif
},
// IDirect3DDevice8::SetRenderState_ZEnable
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_ZEnable_1_0_5849,
XTL::EmuIDirect3DDevice8_SetRenderState_ZEnable,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_ZEnable"
#endif
},
// IDirect3DDevice8::SetRenderState_OcclusionCullEnable (* unchanged since 4432 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_OcclusionCullEnable_1_0_4432,
XTL::EmuIDirect3DDevice8_SetRenderState_OcclusionCullEnable,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_OcclusionCullEnable"
#endif
},
// IDirect3DDevice8::SetRenderState_MultiSampleAntiAlias (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_MultiSampleAntiAlias_1_0_4627,
XTL::EmuIDirect3DDevice8_SetRenderState_MultiSampleAntiAlias,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_MultiSampleAntiAlias"
#endif
},
// IDirect3DDevice8::SetRenderState_ShadowFunc (* unchanged since 4432 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_ShadowFunc_1_0_4432,
XTL::EmuIDirect3DDevice8_SetRenderState_ShadowFunc,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_ShadowFunc"
#endif
},
// IDirect3DDevice8::SetRenderState_YuvEnable (* unchanged since 4432 *)
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_YuvEnable_1_0_4432,
XTL::EmuIDirect3DDevice8_SetRenderState_YuvEnable,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_YuvEnable"
#endif
},
// IDirect3DDevice8::GetTransform (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_GetTransform_1_0_4361,
XTL::EmuIDirect3DDevice8_GetTransform,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_GetTransform"
#endif
},
// IDirect3DDevice8::SetTransform
{
(OOVPA*)&IDirect3DDevice8_SetTransform_1_0_5849,
XTL::EmuIDirect3DDevice8_SetTransform,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetTransform"
#endif
},
// IDirect3DDevice8::SetMaterial
{
(OOVPA*)&IDirect3DDevice8_SetMaterial_1_0_5849,
XTL::EmuIDirect3DDevice8_SetMaterial,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetMaterial"
#endif
},
// IDirect3DDevice8::SetStreamSource (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DDevice8_SetStreamSource_1_0_4361,
XTL::EmuIDirect3DDevice8_SetStreamSource,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetStreamSource"
#endif
},
// IDirect3DResource8::Register (* unchanged since 3925 *)
{
(OOVPA*)&IDirect3DResource8_Register_1_0_3925,
XTL::EmuIDirect3DResource8_Register,
#ifdef _DEBUG_TRACE
"EmuIDirect3DResource8_Register"
#endif
},
// IDirect3DResource8::AddRef (* unchanged since 3925 *)
{
(OOVPA*)&IDirect3DResource8_AddRef_1_0_3925,
XTL::EmuIDirect3DResource8_AddRef,
#ifdef _DEBUG_TRACE
"EmuIDirect3DResource8_AddRef"
#endif
},
// IDirect3DResource8::Release (* unchanged since 3925 *)
{
(OOVPA*)&IDirect3DResource8_Release_1_0_3925,
XTL::EmuIDirect3DResource8_Release,
#ifdef _DEBUG_TRACE
"EmuIDirect3DResource8_Release"
#endif
},
// IDirect3DResource8::AddRef (* unchanged since 3925 *)
{
(OOVPA*)&IDirect3DResource8_AddRef_1_0_3925,
XTL::EmuIDirect3DResource8_AddRef,
#ifdef _DEBUG_TRACE
"EmuIDirect3DResource8_AddRef"
#endif
},
// IDirect3DSurface8::GetDesc (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DSurface8_GetDesc_1_0_4361,
XTL::EmuIDirect3DSurface8_GetDesc,
#ifdef _DEBUG_TRACE
"EmuIDirect3DSurface8_GetDesc"
#endif
},
// IDirect3DSurface8::LockRect (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DSurface8_LockRect_1_0_4361,
XTL::EmuIDirect3DSurface8_LockRect,
#ifdef _DEBUG_TRACE
"EmuIDirect3DSurface8_LockRect"
#endif
},
// IDirect3DBaseTexture8::GetLevelCount (* unchanged since 4361 *)
{
(OOVPA*)&IDirect3DBaseTexture8_GetLevelCount_1_0_4361,
XTL::EmuIDirect3DBaseTexture8_GetLevelCount,
#ifdef _DEBUG_TRACE
"EmuIDirect3DBaseTexture8_GetLevelCount"
#endif
},
// IDirect3DTexture8::GetSurfaceLevel2 (* unchanged since 4627 *)
{
(OOVPA*)&IDirect3DTexture8_GetSurfaceLevel2_1_0_4627,
XTL::EmuIDirect3DTexture8_GetSurfaceLevel2,
#ifdef _DEBUG_TRACE
"EmuIDirect3DTexture8_GetSurfaceLevel2"
#endif
}
};
// ******************************************************************
// * D3D8_1_0_5849_SIZE
// ******************************************************************
uint32 D3D8_1_0_5849_SIZE = sizeof(D3D8_1_0_5849);

View File

@ -547,7 +547,7 @@ SOOVPA<12> IDirectSoundBuffer8_SetFrequency_1_0_4627 =
// ******************************************************************
// * CMcpxVoiceClient_SetVolume
// ******************************************************************
SOOVPA<13> CMcpxVoiceClient_SetVolume_1_0_4361 =
SOOVPA<13> CMcpxVoiceClient_SetVolume_1_0_4627 =
{
0, // Large == 0
13, // Count == 13
@ -582,7 +582,7 @@ SOOVPA<13> CMcpxVoiceClient_SetVolume_1_0_4361 =
// ******************************************************************
// * CDirectSoundStream_SetVolume
// ******************************************************************
SOOVPA<11> CDirectSoundStream_SetVolume_1_0_4361 =
SOOVPA<11> CDirectSoundStream_SetVolume_1_0_4627 =
{
0, // Large == 0
11, // Count == 11
@ -2087,7 +2087,7 @@ OOVPATable DSound_1_0_4627[] =
},
// CMcpxVoiceClient_SetVolume
{
(OOVPA*)&CMcpxVoiceClient_SetVolume_1_0_4361, 0,
(OOVPA*)&CMcpxVoiceClient_SetVolume_1_0_4627, 0,
#ifdef _DEBUG_TRACE
"CMcpxVoiceClient::SetVolume (XREF)"
@ -2095,7 +2095,7 @@ OOVPATable DSound_1_0_4627[] =
},
// CDirectSoundStream_SetVolume
{
(OOVPA*)&CDirectSoundStream_SetVolume_1_0_4361,
(OOVPA*)&CDirectSoundStream_SetVolume_1_0_4627,
XTL::EmuCDirectSoundStream_SetVolume,

File diff suppressed because it is too large Load Diff

View File

@ -202,7 +202,7 @@ OOVPATable XAPI_1_0_4627[] =
"EmuXRegisterThreadNotifyRoutine"
#endif
},
// RtlCreateHeap (* unchanged since 1.0.4361 *) (* OR FARTHER *)
// RtlCreateHeap (* unchanged since 1.0.3911 *)
{
(OOVPA*)&RtlCreateHeap_1_0_3911,
@ -212,7 +212,7 @@ OOVPATable XAPI_1_0_4627[] =
"EmuRtlCreateHeap"
#endif
},
// RtlAllocateHeap (* unchanged since 1.0.4361 *) (* OR FARTHER *)
// RtlAllocateHeap (* unchanged since 1.0.3911 *)
{
(OOVPA*)&RtlAllocateHeap_1_0_3911,

View File

@ -0,0 +1,409 @@
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->CxbxKrnl->Xapi.1.0.5849.cpp
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them under the terms of the GNU General Public
// * License as published by the Free Software Foundation; either
// * version 2 of the license, or (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
// ******************************************************************
// * XapiApplyKernelPatches
// ******************************************************************
SOOVPA<7> XapiApplyKernelPatches_1_0_5849 =
{
0, // Large == 0
7, // Count == 7
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x17, 0x81 },
{ 0x30, 0x81 },
{ 0x49, 0x05 },
{ 0x62, 0x1B },
{ 0x7B, 0x85 },
{ 0x96, 0x6A },
{ 0xAD, 0x5F },
}
};
// ******************************************************************
// * RtlCreateHeap
// ******************************************************************
SOOVPA<8> RtlCreateHeap_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x1E, 0x45 },
{ 0x3E, 0xFF },
{ 0x5E, 0x8C },
{ 0x7E, 0x75 },
{ 0xA1, 0x89 },
{ 0xBE, 0xC7 },
{ 0xDE, 0x00 },
{ 0xFE, 0x89 },
}
};
// ******************************************************************
// * RtlAllocateHeap
// ******************************************************************
SOOVPA<8> RtlAllocateHeap_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x1E, 0x8B },
{ 0x3E, 0x7D },
{ 0x5E, 0x00 },
{ 0x7E, 0x45 },
{ 0x9E, 0xCF },
{ 0xBE, 0x8D },
{ 0xDE, 0x45 },
{ 0xFE, 0x8B },
}
};
// ******************************************************************
// * RtlSizeHeap
// ******************************************************************
SOOVPA<8> RtlSizeHeap_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x04, 0x8A },
{ 0x0A, 0x05 },
{ 0x10, 0xA8 },
{ 0x16, 0x51 },
{ 0x1C, 0xC2 },
{ 0x22, 0xF0 },
{ 0x28, 0xE0 },
{ 0x2E, 0x00 },
}
};
// ******************************************************************
// * XInitDevices
// ******************************************************************
// * NOTE: We are actually intercepting USBD_Init, because
// * XInitDevices Simply redirects to that function
// ******************************************************************
SOOVPA<7> XInitDevices_1_0_5849 =
{
0, // Large == 0
7, // Count == 7
-1, // XRef Not Saved
0, // XRef Not Used
{
{ 0x0E, 0x75 },
{ 0x20, 0xBE },
{ 0x2E, 0xC0 },
{ 0x3E, 0xEC },
{ 0x50, 0x0F },
{ 0x5F, 0xE8 },
{ 0x70, 0x5F },
}
};
// ******************************************************************
// * XInputGetCapabilities
// ******************************************************************
SOOVPA<8> XInputGetCapabilities_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x1D, 0x85 },
{ 0x3C, 0x8A },
{ 0x5B, 0x00 },
{ 0x7A, 0x45 },
{ 0x99, 0xD4 },
{ 0xB8, 0x02 },
{ 0xD7, 0x8D },
{ 0xF6, 0x46 },
}
};
// ******************************************************************
// * XInputGetState
// ******************************************************************
SOOVPA<7> XInputGetState_1_0_5849 =
{
0, // Large == 0
7, // Count == 7
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x0D, 0x0C },
{ 0x1C, 0x5E },
{ 0x2B, 0xBB },
{ 0x3A, 0x80 },
{ 0x49, 0x08 },
{ 0x58, 0xF3 },
{ 0x67, 0x15 },
}
};
// ******************************************************************
// * XapiInitProcess
// ******************************************************************
SOOVPA<8> XapiInitProcess_1_0_5849 =
{
0, // Large == 0
8, // Count == 8
-1, // Xref Not Saved
0, // Xref Not Used
{
{ 0x22, 0x6A },
{ 0x3E, 0x01 },
{ 0x5E, 0x75 },
{ 0x7E, 0x5E },
{ 0x9E, 0x7D },
{ 0xBE, 0x51 },
{ 0xDE, 0x00 },
{ 0xFE, 0x53 },
}
};
// ******************************************************************
// * XAPI_1_0_5849
// ******************************************************************
OOVPATable XAPI_1_0_5849[] =
{
// XapiApplyKernelPatches_1_0_5849
{
(OOVPA*)&XapiApplyKernelPatches_1_0_5849,
XTL::EmuXapiApplyKernelPatches,
#ifdef _DEBUG_TRACE
"EmuXapiApplyKernelPatches"
#endif
},
// SetThreadPriority (* unchanged since 3911 *)
{
(OOVPA*)&SetThreadPriority_1_0_3911,
XTL::EmuSetThreadPriority,
#ifdef _DEBUG_TRACE
"EmuSetThreadPriority"
#endif
},
// RtlCreateHeap
{
(OOVPA*)&RtlCreateHeap_1_0_5849,
XTL::EmuRtlCreateHeap,
#ifdef _DEBUG_TRACE
"EmuRtlCreateHeap"
#endif
},
// RtlAllocateHeap
{
(OOVPA*)&RtlAllocateHeap_1_0_5849,
XTL::EmuRtlAllocateHeap,
#ifdef _DEBUG_TRACE
"EmuRtlAllocateHeap"
#endif
},
// RtlFreeHeap (* unchanged since 4627 *)
{
(OOVPA*)&RtlFreeHeap_1_0_4627,
XTL::EmuRtlFreeHeap,
#ifdef _DEBUG_TRACE
"EmuRtlFreeHeap"
#endif
},
// RtlReAllocateHeap (* unchanged since 4627 *)
{
(OOVPA*)&RtlReAllocateHeap_1_0_4627,
XTL::EmuRtlReAllocateHeap,
#ifdef _DEBUG_TRACE
"EmuRtlReAllocateHeap"
#endif
},
// RtlSizeHeap
{
(OOVPA*)&RtlSizeHeap_1_0_5849,
XTL::EmuRtlSizeHeap,
#ifdef _DEBUG_TRACE
"EmuRtlSizeHeap"
#endif
},
// QueryPerformanceCounter (* unchanged since 4361 *)
{
(OOVPA*)&QueryPerformanceCounter_1_0_4361,
XTL::EmuQueryPerformanceCounter,
#ifdef _DEBUG_TRACE
"EmuQueryPerformanceCounter"
#endif
},
// QueryPerformanceFrequency (* unchanged since 4361 *)
{
(OOVPA*)&QueryPerformanceFrequency_1_0_4361,
XTL::EmuQueryPerformanceFrequency,
#ifdef _DEBUG_TRACE
"EmuQueryPerformanceFrequency"
#endif
},
// XMountUtilityDrive (* unchanged since 4432 *)
{
(OOVPA*)&XMountUtilityDrive_1_0_4432,
XTL::EmuXMountUtilityDrive,
#ifdef _DEBUG_TRACE
"EmuXMountUtilityDrive"
#endif
},
// XInitDevices
{
(OOVPA*)&XInitDevices_1_0_5849,
XTL::EmuXInitDevices,
#ifdef _DEBUG_TRACE
"EmuXInitDevices"
#endif
},
// XGetDevices (* unchanged since 1.0.4134 *)
{
(OOVPA*)&XGetDevices_1_0_4134,
XTL::EmuXGetDevices,
#ifdef _DEBUG_TRACE
"EmuXGetDevices"
#endif
},
// XInputOpen (* unchanged since 1.0.4361 *)
{
(OOVPA*)&XInputOpen_1_0_4361,
XTL::EmuXInputOpen,
#ifdef _DEBUG_TRACE
"EmuXInputOpen"
#endif
},
// XInputGetCapabilities
{
(OOVPA*)&XInputGetCapabilities_1_0_5849,
XTL::EmuXInputGetCapabilities,
#ifdef _DEBUG_TRACE
"EmuXInputGetCapabilities"
#endif
},
// XInputGetState
{
(OOVPA*)&XInputGetState_1_0_5849,
XTL::EmuXInputGetState,
#ifdef _DEBUG_TRACE
"EmuXInputGetState"
#endif
},
// XapiThreadStartup (* unchanged since 1.0.4361 *)
{
(OOVPA*)&XapiThreadStartup_1_0_4361,
XTL::EmuXapiThreadStartup,
#ifdef _DEBUG_TRACE
"EmuXapiThreadStartup"
#endif
},
// XapiInitProcess
{
(OOVPA*)&XapiInitProcess_1_0_5849,
XTL::EmuXapiInitProcess,
#ifdef _DEBUG_TRACE
"EmuXapiInitProcess"
#endif
},
// XapiBootToDash (* unchanged since 1.0.3911 *)
{
(OOVPA*)&XapiBootDash_1_0_3911,
XTL::EmuXapiBootDash,
#ifdef _DEBUG_TRACE
"EmuXapiBootDash"
#endif
},
};
// ******************************************************************
// * XAPI_1_0_5849_SIZE
// ******************************************************************
uint32 XAPI_1_0_5849_SIZE = sizeof(XAPI_1_0_5849);