fix some config shenanigans
This commit is contained in:
parent
e30a91e8f7
commit
954e64831c
@ -39,6 +39,7 @@ AreaData::AreaData(QStringList characters, QString p_name, int p_index)
|
|||||||
QSettings config_ini("config/config.ini", QSettings::IniFormat);
|
QSettings config_ini("config/config.ini", QSettings::IniFormat);
|
||||||
config_ini.beginGroup("Options");
|
config_ini.beginGroup("Options");
|
||||||
int log_size = config_ini.value("logbuffer", 50).toInt();
|
int log_size = config_ini.value("logbuffer", 50).toInt();
|
||||||
|
config_ini.endGroup();
|
||||||
if (log_size == 0)
|
if (log_size == 0)
|
||||||
log_size = 500;
|
log_size = 500;
|
||||||
logger = new Logger(log_size, this);
|
logger = new Logger(log_size, this);
|
||||||
|
@ -82,10 +82,6 @@ void Server::start()
|
|||||||
for (int i = 0; i < area_names.length(); i++) {
|
for (int i = 0; i < area_names.length(); i++) {
|
||||||
QString area_name = area_names[i];
|
QString area_name = area_names[i];
|
||||||
areas.insert(i, new AreaData(characters, area_name, i));
|
areas.insert(i, new AreaData(characters, area_name, i));
|
||||||
areas_ini.beginGroup(area_name);
|
|
||||||
// TODO: more area config
|
|
||||||
areas[i]->background = areas_ini.value("background", "gs4").toString();
|
|
||||||
areas_ini.endGroup();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user