mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
eqemu_config is now persistent after first load.
This commit is contained in:
parent
4ed6e20b35
commit
e61e7fd008
@ -45,9 +45,10 @@ void EQEmuConfig::parse_config() {
|
|||||||
LoginPassword = _root["server"]["world"]["loginserver"].get("password", "").asString();
|
LoginPassword = _root["server"]["world"]["loginserver"].get("password", "").asString();
|
||||||
} else {
|
} else {
|
||||||
char str[32];
|
char str[32];
|
||||||
|
loginlist.Clear();
|
||||||
do {
|
do {
|
||||||
sprintf(str, "loginserver%i", ++LoginCount);
|
sprintf(str, "loginserver%i", ++LoginCount);
|
||||||
if (_root["server"]["world"][str].get("host", "").asString() == "") {
|
if (!_root["server"]["world"][str].isObject()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -146,7 +146,7 @@ class EQEmuConfig
|
|||||||
static bool LoadConfig()
|
static bool LoadConfig()
|
||||||
{
|
{
|
||||||
if (_config != nullptr) {
|
if (_config != nullptr) {
|
||||||
delete _config;
|
return true;
|
||||||
}
|
}
|
||||||
_config = new EQEmuConfig;
|
_config = new EQEmuConfig;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user