forked from H-uru/dirtsand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.h
71 lines (58 loc) · 2.49 KB
/
settings.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
/******************************************************************************
* This file is part of dirtsand. *
* *
* dirtsand is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* dirtsand is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with dirtsand. If not, see <http://www.gnu.org/licenses/>. *
******************************************************************************/
#ifndef _DS_SETTINGS_H
#define _DS_SETTINGS_H
#include "strings.h"
#define CRYPT_BASE_AUTH (41)
#define CRYPT_BASE_GAME (73)
#define CRYPT_BASE_GATE (4)
#define CLIENT_BUILD_ID (902)
#define CLIENT_BUILD_TYPE (50)
#define CLIENT_BRANCH_ID (1)
#define CLIENT_PRODUCT_ID "ea489821-6c35-4bd0-9dae-bb17c585e680"
#define CHUNK_SIZE (0x8000)
namespace DS
{
enum KeyType
{
e_KeyGate_N, e_KeyGate_K, e_KeyAuth_N, e_KeyAuth_K, e_KeyGame_N,
e_KeyGame_K, e_KeyMaxTypes
};
namespace Settings
{
const uint8_t* CryptKey(KeyType key);
const uint32_t* DroidKey();
// Optimized for throwing onto the network
DS::StringBuffer<chr16_t> FileServerAddress();
DS::StringBuffer<chr16_t> AuthServerAddress();
DS::String GameServerAddress();
const char* LobbyAddress();
const char* LobbyPort();
DS::String FileRoot();
DS::String AuthRoot();
const char* SdlPath();
const char* AgePath();
const char* DbHostname();
const char* DbPort();
const char* DbUsername();
const char* DbPassword();
const char* DbDbaseName();
bool LoadFrom(const char* filename);
void UseDefaults();
}
}
#endif