From b239cdd224cdd5ff1b2b9b06b97c469641943413 Mon Sep 17 00:00:00 2001 From: disinvite Date: Mon, 19 Jun 2023 11:14:40 -0400 Subject: [PATCH] add global and function offsets for comparison tool --- LEGO1/mxdirectdraw.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/LEGO1/mxdirectdraw.cpp b/LEGO1/mxdirectdraw.cpp index bcb7ce0a..f1c9fc89 100644 --- a/LEGO1/mxdirectdraw.cpp +++ b/LEGO1/mxdirectdraw.cpp @@ -2,9 +2,13 @@ #include "mxdirectdraw.h" +// 0x10100c68 BOOL g_paletteIndexed8 = 0; + +// 0x10100c70 BOOL DAT_10100c70 = 0; +// OFFSET: LEGO1 0x1009e7a0 HRESULT MxDirectDraw::SetEntries() { HRESULT ret; @@ -22,6 +26,7 @@ HRESULT MxDirectDraw::SetEntries() return 1; } +// OFFSET: LEGO1 0x1009e7f0 HRESULT MxDirectDraw::FlipToGDISurface() { HRESULT ret; @@ -37,6 +42,7 @@ HRESULT MxDirectDraw::FlipToGDISurface() return 1; } +// OFFSET: LEGO1 0x1009e830 void MxDirectDraw::FUN_1009e830(char *error_msg, HRESULT ret) { if (!DAT_10100c70) { @@ -50,6 +56,7 @@ void MxDirectDraw::FUN_1009e830(char *error_msg, HRESULT ret) DAT_10100c70 = 0; } +// OFFSET: LEGO1 0x1009d570 int MxDirectDraw::GetPrimaryBitDepth() { DWORD dwRGBBitCount; @@ -72,6 +79,7 @@ int MxDirectDraw::GetPrimaryBitDepth() return dwRGBBitCount; } +// OFFSET: LEGO1 0x1009e6a0 int MxDirectDraw::Pause(int param_1) { if (param_1) { @@ -107,7 +115,7 @@ int MxDirectDraw::Pause(int param_1) return 0; } - +// OFFSET: LEGO1 0x1009e750 HRESULT MxDirectDraw::FUN_1009e750() { HRESULT ret; @@ -125,6 +133,7 @@ HRESULT MxDirectDraw::FUN_1009e750() return 1; } +// OFFSET: LEGO1 0x1009e880 char * MxDirectDraw::ErrorToString(HRESULT error) { switch(error) {