Add a few assertions on MFC classes

This commit is contained in:
Anonymous Maarten 2024-02-06 22:45:23 +01:00
parent 3ff4175582
commit f70d1eb495
5 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,7 @@
#include "decomp.h" #include "decomp.h"
DECOMP_SIZE_ASSERT(CDialog, 0x60)
DECOMP_SIZE_ASSERT(CAboutDialog, 0x60) DECOMP_SIZE_ASSERT(CAboutDialog, 0x60)
// FUNCTION: CONFIG 0x00403c20 // FUNCTION: CONFIG 0x00403c20

View File

@ -2,6 +2,7 @@
#include "decomp.h" #include "decomp.h"
DECOMP_SIZE_ASSERT(CCommandLineInfo, 0x24)
DECOMP_SIZE_ASSERT(CConfigCommandLineInfo, 0x24) DECOMP_SIZE_ASSERT(CConfigCommandLineInfo, 0x24)
// FUNCTION: CONFIG 0x00403b10 // FUNCTION: CONFIG 0x00403b10

View File

@ -6,6 +6,7 @@
#include <mxdirectx/mxdirect3d.h> #include <mxdirectx/mxdirect3d.h>
DECOMP_SIZE_ASSERT(CDialog, 0x60)
DECOMP_SIZE_ASSERT(CMainDialog, 0x70) DECOMP_SIZE_ASSERT(CMainDialog, 0x70)
// FUNCTION: CONFIG 0x00403d50 // FUNCTION: CONFIG 0x00403d50

View File

@ -9,7 +9,7 @@
#include <process.h> // _spawnl #include <process.h> // _spawnl
DECOMP_SIZE_ASSERT(CWinApp, 0xc4) DECOMP_SIZE_ASSERT(CWinApp, 0xc4)
DECOMP_SIZE_ASSERT(CConfigApp, 0x10c) DECOMP_SIZE_ASSERT(CConfigApp, 0x108)
DECOMP_STATIC_ASSERT(offsetof(CConfigApp, m_display_bit_depth) == 0xd0) DECOMP_STATIC_ASSERT(offsetof(CConfigApp, m_display_bit_depth) == 0xd0)

View File

@ -13,7 +13,7 @@ struct MxDriver;
#define currentConfigApp ((CConfigApp*) afxCurrentWinApp) #define currentConfigApp ((CConfigApp*) afxCurrentWinApp)
// SIZE 0x10c // SIZE 0x108
class CConfigApp : public CWinApp { class CConfigApp : public CWinApp {
public: public:
CConfigApp(); CConfigApp();
@ -58,7 +58,7 @@ class CConfigApp : public CWinApp {
public: public:
MxDeviceEnumerate* m_device_enumerator; // 0x0c4 MxDeviceEnumerate* m_device_enumerator; // 0x0c4
MxDriver* m_driver; // 0x0c8 MxDriver* m_driver; // 0x0c8
MxDevice* m_device; // 0x0cc MxDevice* m_device; // 0x0cc
int m_display_bit_depth; // 0x0d0 int m_display_bit_depth; // 0x0d0
BOOL m_flip_surfaces; // 0x0d4 BOOL m_flip_surfaces; // 0x0d4
BOOL m_full_screen; // 0x0d8 BOOL m_full_screen; // 0x0d8
@ -73,7 +73,6 @@ class CConfigApp : public CWinApp {
int m_texture_quality; // 0x0fc int m_texture_quality; // 0x0fc
undefined m_unk0x100[4]; // 0x100 undefined m_unk0x100[4]; // 0x100
BOOL m_music; // 0x104 BOOL m_music; // 0x104
undefined m_unk[4];
}; };
#endif // !defined(AFX_CONFIG_H) #endif // !defined(AFX_CONFIG_H)