-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGlobals.h
More file actions
43 lines (35 loc) · 681 Bytes
/
Globals.h
File metadata and controls
43 lines (35 loc) · 681 Bytes
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
/*!
@date 06/02/2022
@author Arves100
@file Globals.h
@brief project main singleton and global configuration
*/
#pragma once
#include "Loader.h"
#include "DPMsgArena.h"
class Globals
{
public:
Globals();
~Globals();
static Globals* Get()
{
if (!ms_pSingleton)
new Globals();
return ms_pSingleton;
}
void Fatal(const wchar_t* error, const wchar_t* file, size_t line);
// Public fields
Loader* TheLoader;
bool LoaderUseFullFunctions;
HWND GameWindow;
DWORD GamePID;
HANDLE GameProcess;
HINSTANCE GameModule;
TCHAR GameDiskPath[MAX_PATH + 1];
LPVOID BaseAddress;
bool WindowedMode;
DPMsgArena* TheArena;
private:
static Globals* ms_pSingleton;
};