This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCFinalSunApp.h
78 lines (61 loc) · 2.14 KB
/
CFinalSunApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#pragma once
#include "FA2PP.h"
class CFinalSunDlg;
class CLoading;
class NOVTABLE CFinalSunApp : public ppmfc::CWinApp
{
public:
static constexpr reference<char, 0x72A738, 260> const ExePath{}; // Where FA2.exe locates
static constexpr reference<char, 0x72A530, 260> const MapPath{}; // Where current map locates
static constexpr reference<char, 0x72A634, 260> const FilePath{}; // Where mix files locates
static constexpr reference<CFinalSunApp, 0x7EDF08> const Instance{};
CFinalSunApp() _PPMFC_THISCALL(0x41F720);
// virtual functions
virtual ~CFinalSunApp() override _PPMFC_THISCALL(0x41FA40);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, ppmfc::AFX_CMDHANDLERINFO* pHandlerInfo) override
_PPMFC_THISCALL(0x422F60);
virtual const ppmfc::AFX_MSGMAP* GetMessageMap() const override
_PPMFC_THISCALL(0x41F710);
virtual BOOL InitInstance() override
_PPMFC_THISCALL(0x41FAD0);
virtual int Run() override
_PPMFC_THISCALL(0x4229D0);
virtual BOOL PreTranslateMessage(MSG* pMsg) override
_PPMFC_THISCALL(0x422F20);
virtual BOOL OnIdle(LONG lCount) override
_PPMFC_THISCALL(0x422F80);
virtual LRESULT ProcessWndProcException(ppmfc::CException* e, const MSG* pMsg) override
_PPMFC_THISCALL(0x422F00);
virtual BOOL ProcessMessageFilter(int code, LPMSG lpMsg) override
_PPMFC_THISCALL(0x4229E0);
// normal functions
CFinalSunDlg* GetDialog() { return (CFinalSunDlg*)this->m_pMainWnd; }
CLoading* GetLoading() { return this->Loading; }
public:
DWORD Unknown_C0; // never seen it huh
ppmfc::CString InstallPath; // Will be copied into FilePath at the end of InitInstance
ppmfc::CString Language; // default to English
ppmfc::CString RecentFiles[4];
BOOL FlatToGround;
BOOL EasyMode;
BOOL FrameMode;
BOOL MarbleLoaded;
BOOL ShowBuildingCells;
BOOL NoBuildingGraphics;
BOOL NoInfantryGraphics;
BOOL NoAircraftGraphics;
BOOL NoTreeGraphics;
BOOL NoSnowGraphics;
BOOL NoTemperateGraphics;
BOOL NoVehicleGraphics;
BOOL NoBMPs;
BOOL NoOverlayGraphics;
BOOL DisableAutoShore;
BOOL DisableAutoLat;
BOOL NoSounds;
BOOL DisableSlopeCorrection;
BOOL FileSearchLikeTS;
CLoading* Loading;
UINT ClipboardFormat;
HACCEL AccTable;
};