ManaPlus
src
options.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2004-2009 The Mana World Development Team
4
* Copyright (C) 2009-2010 The Mana Developers
5
* Copyright (C) 2011-2019 The ManaPlus Developers
6
* Copyright (C) 2019-2021 Andrei Karas
7
*
8
* This file is part of The ManaPlus Client.
9
*
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
#ifndef OPTIONS_H
25
#define OPTIONS_H
26
27
#include <string>
28
29
#if defined(__GXX_EXPERIMENTAL_CXX0X__)
30
#if defined(__APPLE__)
31
#include <tr1/cstdint>
32
#endif
// defined(__APPLE__)
33
#endif
// defined(__GXX_EXPERIMENTAL_CXX0X__)
34
35
#include "
localconsts.h
"
36
41
struct
Options
final
42
{
43
Options
() :
44
username
(),
45
password
(),
46
character
(),
47
brandingPath
(),
48
updateHost
(),
49
dataPath
(),
50
homeDir
(),
51
logFileName
(),
52
chatLogDir
(),
53
configDir
(),
54
localDataDir
(),
55
screenshotDir
(),
56
test
(),
57
serverName
(),
58
serverType
(),
59
renderer
(-1),
60
serverPort
(0),
61
printHelp
(false),
62
printVersion
(false),
63
skipUpdate
(false),
64
chooseDefault
(false),
65
noOpenGL
(false),
66
safeMode
(false),
67
testMode
(false),
68
ipc
(false),
69
hideCursor
(false),
70
error
(false),
71
validate
(false)
72
{}
73
74
A_DELETE_COPY
(
Options
)
75
76
std
::
string
username
;
77
std
::
string
password
;
78
std
::
string
character
;
79
std
::
string
brandingPath
;
80
std
::
string
updateHost
;
81
std
::
string
dataPath
;
82
std
::
string
homeDir
;
83
std
::
string
logFileName
;
84
std
::
string
chatLogDir
;
85
std
::
string
configDir
;
86
std
::
string
localDataDir
;
87
std
::
string
screenshotDir
;
88
std
::
string
test
;
89
std
::
string
serverName
;
90
std
::
string
serverType
;
91
int
renderer
;
92
uint16_t
serverPort
;
93
bool
printHelp
;
94
bool
printVersion
;
95
bool
skipUpdate
;
96
bool
chooseDefault
;
97
bool
noOpenGL
;
98
bool
safeMode
;
99
bool
testMode
;
100
bool
ipc
;
101
bool
hideCursor
;
102
bool
error
;
103
bool
validate
;
104
};
105
106
#endif
// OPTIONS_H
localconsts.h
final
#define final
Definition:
localconsts.h:46
A_DELETE_COPY
#define A_DELETE_COPY(func)
Definition:
localconsts.h:53
std
Definition:
mseprimitives.h:398
Options
Definition:
options.h:42
Options::homeDir
std::string homeDir
Definition:
options.h:82
Options::validate
bool validate
Definition:
options.h:103
Options::printHelp
bool printHelp
Definition:
options.h:93
Options::noOpenGL
bool noOpenGL
Definition:
options.h:97
Options::brandingPath
std::string brandingPath
Definition:
options.h:79
Options::safeMode
bool safeMode
Definition:
options.h:98
Options::chatLogDir
std::string chatLogDir
Definition:
options.h:84
Options::test
std::string test
Definition:
options.h:88
Options::screenshotDir
std::string screenshotDir
Definition:
options.h:87
Options::skipUpdate
bool skipUpdate
Definition:
options.h:95
Options::chooseDefault
bool chooseDefault
Definition:
options.h:96
Options::hideCursor
bool hideCursor
Definition:
options.h:101
Options::updateHost
std::string updateHost
Definition:
options.h:80
Options::ipc
bool ipc
Definition:
options.h:100
Options::configDir
std::string configDir
Definition:
options.h:85
Options::serverPort
uint16_t serverPort
Definition:
options.h:92
Options::localDataDir
std::string localDataDir
Definition:
options.h:86
Options::character
std::string character
Definition:
options.h:78
Options::error
bool error
Definition:
options.h:102
Options::Options
Options()
Definition:
options.h:43
Options::dataPath
std::string dataPath
Definition:
options.h:81
Options::printVersion
bool printVersion
Definition:
options.h:94
Options::logFileName
std::string logFileName
Definition:
options.h:83
Options::password
std::string password
Definition:
options.h:77
Options::renderer
int renderer
Definition:
options.h:91
Options::serverType
std::string serverType
Definition:
options.h:90
Options::testMode
bool testMode
Definition:
options.h:99
Options::serverName
std::string serverName
Definition:
options.h:89
Options::username
std::string username
Definition:
options.h:76
Generated on Wed Mar 17 2021 19:19:09 for ManaPlus by
1.9.1