-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig_new.h
58 lines (38 loc) · 1.13 KB
/
config_new.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
#pragma once
#include <stdint.h>
#include "lib\utils.hpp"
extern unsigned long MAX_SKILL;
namespace Config
{
extern uint32_t ExceptionCount;
extern uint32_t LogMode;
extern std::string LogFile;
extern std::string ChrBase;
extern uint32_t ServerID;
extern bool ServerStarted;
extern std::string CurrentMapName;
extern std::string CurrentMapTitle;
extern uint32_t ServerFlags;
extern bool MapLoaded;
extern uint32_t ProtocolVersion;
extern uint32_t MaxPaletteAllowed;
extern std::string SqlAddress;
extern uint16_t SqlPort;
extern std::string SqlLogin;
extern std::string SqlPassword;
extern std::string SqlDatabase;
extern uint32_t ServerCaps;
extern uint32_t GameMode;
extern bool Suspended;
extern uint32_t OriginalTime;
extern uint32_t MaxPlayers;
extern std::string ControlDirectory;
extern bool ExitingCleanly;
extern std::string IPAddress;
extern uint16_t IPAddressP;
extern std::string IPAddress2;
extern uint16_t IPAddress2P;
extern std::string HatAddress;
extern uint16_t HatAddressP;
}
int ReadConfig(const char* filename);