mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +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();
|
||||
} else {
|
||||
char str[32];
|
||||
loginlist.Clear();
|
||||
do {
|
||||
sprintf(str, "loginserver%i", ++LoginCount);
|
||||
if (_root["server"]["world"][str].get("host", "").asString() == "") {
|
||||
if (!_root["server"]["world"][str].isObject()) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ class EQEmuConfig
|
||||
static bool LoadConfig()
|
||||
{
|
||||
if (_config != nullptr) {
|
||||
delete _config;
|
||||
return true;
|
||||
}
|
||||
_config = new EQEmuConfig;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user