-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathDiablo2.hpp
50 lines (46 loc) · 1.14 KB
/
Diablo2.hpp
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
#pragma once
#include "../Shared/D2Shared.hpp"
#include "../Shared/D2Packets.hpp"
#include "../Libraries/sdl/SDL.h"
enum D2CommandType
{
CMD_BOOLEAN,
CMD_DWORD,
CMD_STRING,
CMD_BYTE,
CMD_WORD
};
/*
* The structure containing information about parsing commandline arguments
* @author Necrolis
*/
struct D2CmdArgStrc
{
char szSection[16]; // +00
char szKeyName[16]; // +10
char szCmdName[16]; // +20
DWORD dwType; // +30 ( 0 use GetProfInt - write bool, 1 DWORD , 2 string, 3 BYTE, 4 WORD)
DWORD nOffset; // +34
DWORD dwDefault; // +38
}; // +3C
/*
* The structure containing information about the system running the game
*/
struct D2SystemInfoStrc
{
char szComputerName[64];
char szOSName[128];
char szProcessorVendor[32];
char szProcessorModel[64];
char szProcessorSpeed[64]; // maybe not present on linux?
char szProcessorIdentifier[64];
char szRAMPhysical[64];
char szRAMVirtual[64];
char szRAMPaging[64];
char szWorkingDirectory[MAX_D2PATH_ABSOLUTE];
};
// Diablo2.cpp
int InitGame(int argc, char** argv);
DWORD GetMilliseconds();
bool ServerProcessPacket(D2Packet* pPacket);
bool ClientProcessPacket(D2Packet* pPacket);