// ****************************************************************** // * // * .,-::::: .,:: .::::::::. .,:: .: // * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;; // * [[[ '[[,,[[' [[[__[[\. '[[,,[[' // * $$$ Y$$$P $$""""Y$$ Y$$$P // * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo, // * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm, // * // * Cxbx->Win32->CxbxKrnl->Emu.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 // * // * All rights reserved // * // ****************************************************************** #ifndef EMU_H #define EMU_H // ****************************************************************** // * cxbxkrnl exports, others import // ****************************************************************** #ifndef _CXBXKRNL_INTERNAL #define CXBXKRNL_API DECLSPEC_IMPORT #else #define CXBXKRNL_API DECLSPEC_EXPORT #endif // ****************************************************************** // * prevent name collisions // ****************************************************************** namespace xboxkrnl { #include #include "Emuxapi.h" }; // ****************************************************************** // * prevent name collisions // ****************************************************************** namespace win32 { #undef FIELD_OFFSET // prevent macro redefinition warnings #include #include #include #define DIRECTINPUT_VERSION 0x0800 #include }; #include "EmuShared.h" // ****************************************************************** // * prevent name collisions // ****************************************************************** namespace xboxkrnl { #include "EmuD3D.h" #include "EmuDInput.h" }; // ****************************************************************** // * globals // ****************************************************************** extern win32::HWND g_EmuWindow; // Rendering Window extern xboxkrnl::XINPUT_STATE g_EmuGamepad1; #include "OOVPA.h" #include "HLEDataBase.h" #include "EmuKrnl.h" #include "EmuLDT.h" #include "EmuFS.h" #if defined(__cplusplus) extern "C" { #endif // ****************************************************************** // * func: EmuNoFunc // ****************************************************************** CXBXKRNL_API void NTAPI EmuNoFunc(); // ****************************************************************** // * func: EmuInit // ****************************************************************** CXBXKRNL_API void NTAPI EmuInit(Xbe::LibraryVersion *LibraryVersion, DebugMode DebugConsole, char *DebugFilename, Xbe::Header *XbeHeader, uint32 XbeHeaderSize, void (*Entry)()); // ****************************************************************** // * func: EmuPanic // ****************************************************************** CXBXKRNL_API void NTAPI EmuPanic(); // ****************************************************************** // * data: KernelThunkTable // ****************************************************************** extern CXBXKRNL_API uint32 KernelThunkTable[367]; #if defined(__cplusplus) } #endif #endif