fix some config shenanigans

This commit is contained in:
in1tiate 2021-03-03 01:44:41 -06:00
parent e30a91e8f7
commit 954e64831c
2 changed files with 1 additions and 4 deletions

View File

@ -39,6 +39,7 @@ AreaData::AreaData(QStringList characters, QString p_name, int p_index)
QSettings config_ini("config/config.ini", QSettings::IniFormat);
config_ini.beginGroup("Options");
int log_size = config_ini.value("logbuffer", 50).toInt();
config_ini.endGroup();
if (log_size == 0)
log_size = 500;
logger = new Logger(log_size, this);

View File

@ -82,10 +82,6 @@ void Server::start()
for (int i = 0; i < area_names.length(); i++) {
QString area_name = area_names[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();
}
}