// ****************************************************************** // * // * .,-::::: .,:: .::::::::. .,:: .: // * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;; // * [[[ '[[,,[[' [[[__[[\. '[[,,[[' // * $$$ 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.4361.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 // * // * All rights reserved // * // ****************************************************************** // ****************************************************************** // * IDirect3D8_CreateDevice // ****************************************************************** SOOVPA<8> IDirect3D8_CreateDevice_1_0_4361 = { 0, // Large == 0 8, // Count == 8 { // IDirect3D8_CreateDevice+0x07 : jnz +0x0A { 0x07, 0x75 }, // (Offset,Value)-Pair #1 { 0x08, 0x0A }, // (Offset,Value)-Pair #2 // IDirect3D8_CreateDevice+0x86 : repe stosd { 0x86, 0xF3 }, // (Offset,Value)-Pair #3 { 0x87, 0xAB }, // (Offset,Value)-Pair #4 // IDirect3D8_CreateDevice+0x89 : mov eax, esi { 0x89, 0x8B }, // (Offset,Value)-Pair #5 { 0x8A, 0xC6 }, // (Offset,Value)-Pair #6 // IDirect3D8_CreateDevice+0xA0 : retn 0x18 { 0xA0, 0xC2 }, // (Offset,Value)-Pair #7 { 0xA1, 0x18 }, // (Offset,Value)-Pair #8 } }; // ****************************************************************** // * IDirect3DDevice8_Clear // ****************************************************************** LOOVPA<9> IDirect3DDevice8_Clear_1_0_4361 = { 1, // Large == 1 9, // Count == 9 { // IDirect3DDevice8_Clear+0x0000 : sub esp, 38h { 0x0000, 0x83 }, // (Offset,Value)-Pair #1 { 0x0001, 0xEC }, // (Offset,Value)-Pair #2 { 0x0002, 0x38 }, // (Offset,Value)-Pair #3 // IDirect3DDevice8_Clear+0x000B : mov ebx, [ebp+0x2074] { 0x000B, 0x8B }, // (Offset,Value)-Pair #4 { 0x000C, 0x9D }, // (Offset,Value)-Pair #5 { 0x000D, 0x74 }, // (Offset,Value)-Pair #6 { 0x000E, 0x20 }, // (Offset,Value)-Pair #7 // IDirect3DDevice8_Clear+0x0399 : retn 0x18 { 0x0399, 0xC2 }, // (Offset,Value)-Pair #8 { 0x039A, 0x18 }, // (Offset,Value)-Pair #9 } }; // ****************************************************************** // * IDirect3DDevice8_Swap // ****************************************************************** SOOVPA<11> IDirect3DDevice8_Swap_1_0_4361 = { 0, // Large == 0 11, // Count == 11 { // IDirect3DDevice8_Swap+0x10 : mov ebx, 5 { 0x10, 0xBB }, // (Offset,Value)-Pair #1 { 0x11, 0x05 }, // (Offset,Value)-Pair #2 // IDirect3DDevice8_Swap+0x1D : test bl, 3 { 0x1D, 0xF6 }, // (Offset,Value)-Pair #3 { 0x1E, 0xC3 }, // (Offset,Value)-Pair #4 { 0x1F, 0x03 }, // (Offset,Value)-Pair #5 // IDirect3DDevice8_Swap+0x46 : inc dword ptr [esi+0x2AC4] { 0x46, 0xFF }, // (Offset,Value)-Pair #6 { 0x47, 0x86 }, // (Offset,Value)-Pair #7 { 0x48, 0xC4 }, // (Offset,Value)-Pair #8 { 0x49, 0x2A }, // (Offset,Value)-Pair #9 // IDirect3DDevice8_Swap+0xAE : retn 4 { 0xAE, 0xC2 }, // (Offset,Value)-Pair #10 { 0xAF, 0x04 }, // (Offset,Value)-Pair #11 } }; // ****************************************************************** // * IDirect3DDevice8_CreateVertexBuffer // ****************************************************************** // NOTE: This is set up differently than other XDK version! // ****************************************************************** // * IDirect3DVertexBuffer8_Lock // ****************************************************************** SOOVPA<11> IDirect3DVertexBuffer8_Lock_1_0_4361 = { 0, // Large == 0 11, // Count == 11 { // IDirect3DVertexBuffer8_Lock+0x01 : mov bl, [esp+0x18] { 0x01, 0x8A }, // (Offset,Value)-Pair #1 { 0x02, 0x5C }, // (Offset,Value)-Pair #2 { 0x03, 0x24 }, // (Offset,Value)-Pair #3 { 0x04, 0x18 }, // (Offset,Value)-Pair #4 // IDirect3DVertexBuffer8_Lock+0x09 : jnz +0x24 { 0x09, 0x75 }, // (Offset,Value)-Pair #5 { 0x0A, 0x24 }, // (Offset,Value)-Pair #6 // IDirect3DVertexBuffer8_Lock+0x2F : test bl, 0xA0 { 0x2F, 0xF6 }, // (Offset,Value)-Pair #7 { 0x30, 0xC3 }, // (Offset,Value)-Pair #8 { 0x31, 0xA0 }, // (Offset,Value)-Pair #9 // IDirect3DVertexBuffer8_Lock+0x50 : retn 0x14 { 0x50, 0xC2 }, // (Offset,Value)-Pair #10 { 0x51, 0x14 }, // (Offset,Value)-Pair #11 } }; // ****************************************************************** // * D3D8_1_0_4361 // ****************************************************************** OOVPATable D3D8_1_0_4361[] = { // IDirect3D8::CreateDevice { (OOVPA*)&IDirect3D8_CreateDevice_1_0_4361, xd3d8::EmuIDirect3D8_CreateDevice, #ifdef _DEBUG_TRACE "EmuIDirect3D8_CreateDevice" #endif }, // IDirect3DDevice8::Clear { (OOVPA*)&IDirect3DDevice8_Clear_1_0_4361, xd3d8::EmuIDirect3DDevice8_Clear, #ifdef _DEBUG_TRACE "EmuIDirect3DDevice8_Clear" #endif }, // IDirect3DDevice8::Swap { (OOVPA*)&IDirect3DDevice8_Swap_1_0_4361, xd3d8::EmuIDirect3DDevice8_Swap, #ifdef _DEBUG_TRACE "EmuIDirect3DDevice8_Swap" #endif }, }; // ****************************************************************** // * D3D8_1_0_4361_SIZE // ****************************************************************** uint32 D3D8_1_0_4361_SIZE = sizeof(D3D8_1_0_4361);