Skip to content

Commit ef0781f

Browse files
authored
Merge pull request #227 from RadWolfie/sigs-lower
Lower couple of OOVPA signatures
2 parents 0111260 + b68732e commit ef0781f

6 files changed

Lines changed: 45 additions & 47 deletions

File tree

src/OOVPADatabase/D3D8/4039.inl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,3 +814,23 @@ OOVPA_SIG_MATCH(
814814
{ 0x2E, 0x0F },
815815
//
816816
);
817+
818+
// ******************************************************************
819+
// * D3DDevice_FlushVertexCache
820+
// ******************************************************************
821+
OOVPA_SIG_HEADER_NO_XREF(D3DDevice_FlushVertexCache,
822+
4039)
823+
OOVPA_SIG_MATCH(
824+
825+
{ 0x00, 0x56 },
826+
{ 0x07, 0x8B },
827+
{ 0x08, 0x06 },
828+
{ 0x0D, 0x05 },
829+
{ 0x13, 0xC7 },
830+
{ 0x15, 0x10 },
831+
{ 0x17, 0x04 },
832+
{ 0x1C, 0x00 },
833+
{ 0x21, 0xC0 },
834+
{ 0x26, 0xC3 },
835+
//
836+
);

src/OOVPADatabase/D3D8/4134.inl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -564,26 +564,6 @@ OOVPA_SIG_MATCH(
564564
//
565565
);
566566

567-
// ******************************************************************
568-
// * D3DDevice_FlushVertexCache
569-
// ******************************************************************
570-
OOVPA_SIG_HEADER_NO_XREF(D3DDevice_FlushVertexCache,
571-
4134)
572-
OOVPA_SIG_MATCH(
573-
574-
{ 0x00, 0x56 },
575-
{ 0x07, 0x8B },
576-
{ 0x08, 0x06 },
577-
{ 0x0D, 0x05 },
578-
{ 0x13, 0xC7 },
579-
{ 0x15, 0x10 },
580-
{ 0x17, 0x04 },
581-
{ 0x1C, 0x00 },
582-
{ 0x21, 0xC0 },
583-
{ 0x26, 0xC3 },
584-
//
585-
);
586-
587567
// ******************************************************************
588568
// * D3DDevice_MakeSpace
589569
// ******************************************************************

src/OOVPADatabase/D3D8_OOVPA.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
// * D3DDevice_End (4034)
6363
// * D3DDevice_EndPushBuffer (3950, 4034, 4242, 4831, 5028)
6464
// * D3DDevice_EndStateBlock (3950, 4034, 4039, 4721, 4831, 5028, 5120)
65-
// * D3DDevice_FlushVertexCache (4034, 4039)
65+
// * D3DDevice_FlushVertexCache (4034)
6666
// * D3DDevice_GetBackBuffer (4721, 4831, 4928, 5028, 5120, 5233, 5455)
6767
// * D3DDevice_GetBackMaterial (4034)
6868
// * D3DDevice_GetDepthStencilSurface (4034)
@@ -308,7 +308,7 @@ static OOVPATable D3D8_OOVPA_Table[] = {
308308
REGISTER_OOVPAS(SYM_FUN(D3DDevice_EndVisibilityTest, CALL(std), STACK(/*default*/), PARAMS(PARAM(psh, Index))),
309309
SYM_SIG(3911)),
310310
REGISTER_OOVPAS(SYM_FUN(D3DDevice_FlushVertexCache, CALL(std), STACK(/*default*/), PARAMS(PARAM1(void))),
311-
SYM_SIG(3911, 4134)),
311+
SYM_SIG(3911, 4039)),
312312
REGISTER_OOVPAS(SYM_FUN(D3DDevice_GetBackBuffer, CALL(std), STACK(/*default*/), PARAMS(PARAM(psh, BackBuffer), PARAM(psh, Type), PARAM(psh, ppBackBuffer))),
313313
SYM_SIG(3911, 4034, 4134, 4627)),
314314
REGISTER_OOVPAS(SYM_FUN(D3DDevice_GetBackBuffer2, CALL(std), STACK(/*default*/), PARAMS(PARAM(psh, BackBuffer))),

src/OOVPADatabase/Xapi/5120.inl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,25 @@ OOVPA_SIG_MATCH(
1919
{ 0x70, 0x5F },
2020
//
2121
);
22+
23+
// ******************************************************************
24+
// * MU_Init
25+
// ******************************************************************
26+
// Generic OOVPA as of 5120 and newer.
27+
OOVPA_SIG_HEADER_NO_XREF(MU_Init,
28+
5120)
29+
OOVPA_SIG_MATCH(
30+
31+
// push ebp
32+
// mov ebp, esp
33+
// sub esp, 0x0C
34+
OV_MATCH(0x00, 0x55, 0x8B, 0xEC, 0x83, 0xEC, 0x0C),
35+
36+
// push eax
37+
// push 0x00
38+
// push 0x3A
39+
// lea eax, [ebp-0x0C]
40+
OV_MATCH(0x8E, 0x50, 0x6A, 0x00, 0x6A, 0x3A, 0x8D, 0x45, 0xF4), // Was 5233 offset 0x8A
41+
42+
//
43+
);

src/OOVPADatabase/Xapi/5233.inl

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/OOVPADatabase/Xapi_OOVPA.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@
371371
#include "Xapi/4831.inl"
372372
#include "Xapi/5028.inl"
373373
#include "Xapi/5120.inl"
374-
#include "Xapi/5233.inl"
375374
#include "Xapi/5344.inl"
376375
#include "Xapi/5455.inl"
377376

@@ -490,7 +489,7 @@ static OOVPATable XAPILIB_OOVPA_Table[] = {
490489
REGISTER_OOVPAS_C(SYM_FUN(GetTypeInformation2, CALL(fas), STACK(/*default*/), PARAMS(PARAM(_cl, XidType), PARAM(edx, pTypeIndex))),
491490
SYM_SIG(4242, 5455)), // Final generic OOVPA: 5455; Removed: 0
492491
REGISTER_OOVPAS_M(SYM_FUN(MU_Init, CALL(std), STACK(/*default*/), PARAMS(PARAM(psh, pThis))),
493-
SYM_SIG(3911, 4242, 5233)),
492+
SYM_SIG(3911, 4242, 5120)),
494493
REGISTER_OOVPAS(SYM_FUN(OpenEventA, CALL(std), STACK(/*default*/), PARAMS(PARAM(psh, dwDesiredAccess), PARAM(psh, bInheritHandle), PARAM(psh, lpName))),
495494
SYM_SIG(3911)), // Final generic OOVPA: 3911; Removed: 0
496495
REGISTER_OOVPAS(SYM_FUN(OutputDebugStringA, CALL(std), STACK(/*default*/), PARAMS(PARAM(psh, lpOutputString))),

0 commit comments

Comments
 (0)