2003-01-26 06:18:56 +00:00
|
|
|
// ******************************************************************
|
|
|
|
// *
|
|
|
|
// * .,-::::: .,:: .::::::::. .,:: .:
|
|
|
|
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
|
|
|
|
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
|
|
|
|
// * $$$ Y$$$P $$""""Y$$ Y$$$P
|
|
|
|
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
|
|
|
|
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
|
|
|
|
// *
|
2003-03-27 06:23:58 +00:00
|
|
|
// * Cxbx->Win32->CxbxKrnl->Emu.h
|
2003-01-26 06:18:56 +00:00
|
|
|
// *
|
|
|
|
// * 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
|
|
|
|
// *
|
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
#ifndef EMU_H
|
|
|
|
#define EMU_H
|
2003-02-08 08:17:24 +00:00
|
|
|
|
2003-03-07 22:01:44 +00:00
|
|
|
// ******************************************************************
|
|
|
|
// * prevent name collisions
|
|
|
|
// ******************************************************************
|
2003-01-26 06:18:56 +00:00
|
|
|
namespace xboxkrnl
|
|
|
|
{
|
|
|
|
#include <xboxkrnl/xboxkrnl.h>
|
2003-03-27 06:23:58 +00:00
|
|
|
#include "Emuxapi.h"
|
2003-01-26 06:18:56 +00:00
|
|
|
};
|
|
|
|
|
2003-03-07 22:01:44 +00:00
|
|
|
// ******************************************************************
|
|
|
|
// * prevent name collisions
|
|
|
|
// ******************************************************************
|
2003-02-15 22:16:14 +00:00
|
|
|
namespace win32
|
|
|
|
{
|
|
|
|
#undef FIELD_OFFSET // prevent macro redefinition warnings
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <d3d8.h>
|
2003-03-23 22:24:41 +00:00
|
|
|
|
|
|
|
#define DIRECTINPUT_VERSION 0x0800
|
|
|
|
#include <dinput.h>
|
2003-02-15 22:16:14 +00:00
|
|
|
};
|
|
|
|
|
2003-03-07 22:01:44 +00:00
|
|
|
// ******************************************************************
|
|
|
|
// * prevent name collisions
|
|
|
|
// ******************************************************************
|
2003-02-15 22:16:14 +00:00
|
|
|
namespace xboxkrnl
|
|
|
|
{
|
2003-03-27 06:23:58 +00:00
|
|
|
#include "EmuD3D.h"
|
|
|
|
#include "EmuDInput.h"
|
2003-02-15 22:16:14 +00:00
|
|
|
};
|
|
|
|
|
2003-03-23 22:24:41 +00:00
|
|
|
// ******************************************************************
|
|
|
|
// * globals
|
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
extern win32::HWND g_EmuWindow; // Rendering Window
|
|
|
|
extern xboxkrnl::XINPUT_STATE g_EmuController1;
|
2003-03-23 22:24:41 +00:00
|
|
|
|
2003-02-11 22:43:27 +00:00
|
|
|
#include "OOVPA.h"
|
2003-02-15 22:48:07 +00:00
|
|
|
#include "HLEDataBase.h"
|
2003-03-27 06:23:58 +00:00
|
|
|
#include "EmuKrnl.h"
|
|
|
|
#include "EmuLDT.h"
|
|
|
|
#include "EmuFS.h"
|
2003-02-08 22:25:08 +00:00
|
|
|
|
2003-01-26 06:18:56 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ******************************************************************
|
|
|
|
// * cxbxkrnl exports, others import
|
|
|
|
// ******************************************************************
|
2003-03-07 22:01:44 +00:00
|
|
|
#ifndef _CXBXKRNL_INTERNAL
|
2003-01-26 06:18:56 +00:00
|
|
|
#define CXBXKRNL_API DECLSPEC_IMPORT
|
|
|
|
#else
|
|
|
|
#define CXBXKRNL_API DECLSPEC_EXPORT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
// * func: EmuNoFunc
|
2003-01-26 06:18:56 +00:00
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
CXBXKRNL_API void NTAPI EmuNoFunc();
|
2003-01-26 06:18:56 +00:00
|
|
|
|
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
// * func: EmuInit
|
2003-01-26 06:18:56 +00:00
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
CXBXKRNL_API void NTAPI EmuInit(Xbe::LibraryVersion *LibraryVersion, DebugMode DebugConsole, char *DebugFilename, Xbe::Header *XbeHeader, uint32 XbeHeaderSize, void (*Entry)());
|
2003-01-26 06:18:56 +00:00
|
|
|
|
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
// * func: EmuPanic
|
2003-01-26 06:18:56 +00:00
|
|
|
// ******************************************************************
|
2003-03-27 06:23:58 +00:00
|
|
|
CXBXKRNL_API void NTAPI EmuPanic();
|
2003-01-26 06:18:56 +00:00
|
|
|
|
2003-02-08 22:25:08 +00:00
|
|
|
// ******************************************************************
|
|
|
|
// * data: KernelThunkTable
|
|
|
|
// ******************************************************************
|
|
|
|
extern CXBXKRNL_API uint32 KernelThunkTable[367];
|
|
|
|
|
2003-01-26 06:18:56 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|