Annotations

This commit is contained in:
Christian Semmler 2024-02-05 06:56:45 -05:00
parent 751f6d0dc5
commit 6f8a3bc648
2 changed files with 35 additions and 47 deletions

View File

@ -1,5 +1,6 @@
#include "isleapp.h" #include "isleapp.h"
#include "decomp.h"
#include "define.h" #include "define.h"
#include "legoanimationmanager.h" #include "legoanimationmanager.h"
#include "legobuildingmanager.h" #include "legobuildingmanager.h"
@ -23,9 +24,11 @@
#include <dsound.h> #include <dsound.h>
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)
// Might be static functions of IsleApp // Might be static functions of IsleApp
BOOL FindExistingInstance(void); BOOL FindExistingInstance();
BOOL StartDirectSound(void); BOOL StartDirectSound();
// FUNCTION: ISLE 0x401000 // FUNCTION: ISLE 0x401000
IsleApp::IsleApp() IsleApp::IsleApp()
@ -299,7 +302,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
} }
// FUNCTION: ISLE 0x401ca0 // FUNCTION: ISLE 0x401ca0
BOOL FindExistingInstance(void) BOOL FindExistingInstance()
{ {
HWND hWnd = FindWindowA(WNDCLASS_NAME, WINDOW_TITLE); HWND hWnd = FindWindowA(WNDCLASS_NAME, WINDOW_TITLE);
if (hWnd) { if (hWnd) {
@ -312,7 +315,7 @@ BOOL FindExistingInstance(void)
} }
// FUNCTION: ISLE 0x401ce0 // FUNCTION: ISLE 0x401ce0
BOOL StartDirectSound(void) BOOL StartDirectSound()
{ {
LPDIRECTSOUND lpDS = NULL; LPDIRECTSOUND lpDS = NULL;
HRESULT ret = DirectSoundCreate(NULL, &lpDS, NULL); HRESULT ret = DirectSoundCreate(NULL, &lpDS, NULL);

View File

@ -1,11 +1,11 @@
#ifndef ISLEAPP_H #ifndef ISLEAPP_H
#define ISLEAPP_H #define ISLEAPP_H
#include "mxtypes.h"
#include "mxvideoparam.h" #include "mxvideoparam.h"
#include <windows.h> #include <windows.h>
// SIZE 0x8c
class IsleApp { class IsleApp {
public: public:
IsleApp(); IsleApp();
@ -46,48 +46,33 @@ class IsleApp {
inline void SetWindowActive(BOOL p_windowActive) { m_windowActive = p_windowActive; } inline void SetWindowActive(BOOL p_windowActive) { m_windowActive = p_windowActive; }
private: private:
// 0 LPSTR m_hdPath; // 0x00
LPSTR m_hdPath; LPSTR m_cdPath; // 0x04
LPSTR m_cdPath; LPSTR m_deviceId; // 0x08
LPSTR m_deviceId; LPSTR m_savePath; // 0x0c
LPSTR m_savePath; BOOL m_fullScreen; // 0x10
BOOL m_flipSurfaces; // 0x14
// 10 BOOL m_backBuffersInVram; // 0x18
BOOL m_fullScreen; BOOL m_using8bit; // 0x1c
BOOL m_flipSurfaces; BOOL m_using16bit; // 0x20
BOOL m_backBuffersInVram; int m_unk0x24; // 0x24
BOOL m_using8bit; BOOL m_use3dSound; // 0x28
BOOL m_useMusic; // 0x2c
// 20 BOOL m_useJoystick; // 0x30
BOOL m_using16bit; int m_joystickIndex; // 0x34
int m_unk0x24; BOOL m_wideViewAngle; // 0x38
BOOL m_use3dSound; int m_islandQuality; // 0x3c
BOOL m_useMusic; int m_islandTexture; // 0x40
int m_gameStarted; // 0x44
// 30 MxLong m_frameDelta; // 0x48
BOOL m_useJoystick; MxVideoParam m_videoParam; // 0x4c
int m_joystickIndex; BOOL m_windowActive; // 0x70
BOOL m_wideViewAngle; HWND m_windowHandle; // 0x74
int m_islandQuality; BOOL m_drawCursor; // 0x78
HCURSOR m_cursorArrow; // 0x7c
// 40 HCURSOR m_cursorBusy; // 0x80
int m_islandTexture; HCURSOR m_cursorNo; // 0x84
int m_gameStarted; HCURSOR m_cursorCurrent; // 0x88
MxLong m_frameDelta;
// 4c
MxVideoParam m_videoParam;
// 70
BOOL m_windowActive;
HWND m_windowHandle;
BOOL m_drawCursor;
HCURSOR m_cursorArrow;
// 80
HCURSOR m_cursorBusy;
HCURSOR m_cursorNo;
HCURSOR m_cursorCurrent;
}; };
#endif // ISLEAPP_H #endif // ISLEAPP_H