Complete Emulation DLL project by adding all Cxbx source files (except GUI-related stuff). Entire solution builds again with this.
Next steps : - Actually getting the emulation DLL to work - Complete CxbxGUI project by adding all Cxbx GUI-related source files
This commit is contained in:
parent
c42aff2307
commit
bf115fe7ab
|
@ -35,8 +35,12 @@
|
|||
// ******************************************************************
|
||||
#pragma once
|
||||
|
||||
#ifndef CXBXEMULATOR_EXPORTS // Only trim Windows symbols CxbxLoader, not in CxbxEmulator
|
||||
#include <SDKDDKVer.h>
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#endif // CXBXEMULATOR_EXPORTS
|
||||
|
||||
#undef FIELD_OFFSET // prevent macro redefinition warnings
|
||||
#include <windows.h> // For DWORD, CALLBACK, VirtualAlloc, LPVOID, SIZE_T, HMODULE
|
||||
|
||||
#define KB(x) ((x) * 1024 ) // = 0x00000400
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
// ******************************************************************
|
||||
#define LOG_PREFIX CXBXR_MODULE::D3D8
|
||||
|
||||
#ifdef CXBXEMULATOR_EXPORTS // DbgConsole only in Cxbx, not in CxbxEmulator
|
||||
#undef INCLUDE_DBG_CONSOLE
|
||||
#else
|
||||
#define INCLUDE_DBG_CONSOLE
|
||||
#endif
|
||||
#include "common\util\hasher.h"
|
||||
#include <condition_variable>
|
||||
#include <stack>
|
||||
|
@ -41,7 +46,9 @@ namespace xboxkrnl
|
|||
#include "core\kernel\init\CxbxKrnl.h"
|
||||
#include "core\kernel\support\Emu.h"
|
||||
#include "EmuShared.h"
|
||||
#ifdef INCLUDE_DBG_CONSOLE
|
||||
#include "gui\DbgConsole.h"
|
||||
#endif
|
||||
#include "core\hle\D3D8\ResourceTracker.h"
|
||||
#include "core\hle\D3D8\Direct3D9\Direct3D9.h" // For LPDIRECTDRAWSURFACE7
|
||||
#include "core\hle\D3D8\XbVertexBuffer.h"
|
||||
|
@ -1783,7 +1790,9 @@ static DWORD WINAPI EmuRenderWindow(LPVOID lpVoid)
|
|||
|
||||
SetFocus(g_hEmuWindow);
|
||||
|
||||
DbgConsole *dbgConsole = new DbgConsole();
|
||||
#ifdef INCLUDE_DBG_CONSOLE
|
||||
DbgConsole *dbgConsole = new DbgConsole();
|
||||
#endif
|
||||
|
||||
// message processing loop
|
||||
{
|
||||
|
@ -1806,21 +1815,27 @@ static DWORD WINAPI EmuRenderWindow(LPVOID lpVoid)
|
|||
{
|
||||
Sleep(0);
|
||||
|
||||
#ifdef INCLUDE_DBG_CONSOLE
|
||||
// if we've just switched back to display off, clear buffer & display prompt
|
||||
if(!g_bPrintfOn && lPrintfOn)
|
||||
{
|
||||
dbgConsole->Reset();
|
||||
dbgConsole->Reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
lPrintfOn = g_bPrintfOn;
|
||||
|
||||
dbgConsole->Process();
|
||||
#ifdef INCLUDE_DBG_CONSOLE
|
||||
dbgConsole->Process();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
g_bRenderWindowActive = false;
|
||||
|
||||
delete dbgConsole;
|
||||
#ifdef INCLUDE_DBG_CONSOLE
|
||||
delete dbgConsole;
|
||||
#endif
|
||||
|
||||
CxbxKrnlCleanup(nullptr);
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
|
||||
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
|
||||
|
||||
#include <SDKDDKVer.h>
|
||||
//#include <SDKDDKVer.h>
|
||||
|
|
Loading…
Reference in New Issue