This commit is contained in:
Aaron Robinson 2003-06-16 22:06:01 +00:00
parent 7158c59c54
commit 97c54bee4a
4 changed files with 18 additions and 23 deletions

View File

@ -58,16 +58,20 @@ typedef signed char sint08;
typedef signed short sint16;
typedef signed long sint32;
// ******************************************************************
// * Version information
// ******************************************************************
#define _CXBX_VERSION "0.7.2"
// ******************************************************************
// * Define this to trace intercepted function calls
// ******************************************************************
#define _DEBUG_TRACE
// ******************************************************************
// * Version information
// ******************************************************************
#ifndef _DEBUG_TRACE
#define _CXBX_VERSION "0.7.2"
#else
#define _CXBX_VERSION "0.7.2-Trace"
#endif
// ******************************************************************
// * Round up dwValue to nearest multiple of dwMult
// ******************************************************************

View File

@ -385,7 +385,7 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
{
EmuSwapFS(); // XBox FS
_asm int 3
// _asm int 3
Entry();

View File

@ -1327,6 +1327,12 @@ HRESULT WINAPI xd3d8::EmuIDirect3DResource8_Register
// ******************************************************************
switch(pResource->Common & X_D3DCOMMON_TYPE_MASK)
{
case X_D3DCOMMON_TYPE_VERTEXBUFFER:
{
EmuCleanup("Remember to do vertex buffers in here ;]");
}
break;
case X_D3DCOMMON_TYPE_TEXTURE:
{
X_D3DPixelContainer *pPixelContainer = (X_D3DPixelContainer*)pResource;

View File

@ -426,29 +426,14 @@ VOID WINAPI xapi::EmuXapiInitProcess()
EmuSwapFS(); // XBox FS
uint32 pHeapParameters = (uint32)&HeapParameters;
uint32 dwPeHeapReserve = g_pXbeHeader->dwPeHeapReserve;
uint32 dwPeHeapCommit = g_pXbeHeader->dwPeHeapCommit;
PVOID dwResult = 0;
#define HEAP_GROWABLE 0x00000002
#define HEAP_GROWABLE 0x00000002
__asm
{
xor ecx, ecx
push pHeapParameters
push ecx
push dwPeHeapCommit
push dwPeHeapReserve
push ecx
push HEAP_GROWABLE
call g_pRtlCreateHeap
mov dwResult, eax
}
*xapi::EmuXapiProcessHeap = dwResult;
*xapi::EmuXapiProcessHeap = xapi::g_pRtlCreateHeap(HEAP_GROWABLE, 0, dwPeHeapReserve, dwPeHeapCommit, 0, &HeapParameters);
}
return;