fix up all config file paths

This commit is contained in:
scatterflower 2020-09-02 08:51:14 -05:00
parent a474787c4d
commit 619b42e1bb
2 changed files with 3 additions and 6 deletions

View File

@ -76,7 +76,7 @@ void AOClient::handlePacket(AOPacket packet)
sendPacket("ID", {"271828", "akashi", QCoreApplication::applicationVersion()});
}
else if (packet.header == "ID") {
QSettings config("config.ini", QSettings::IniFormat);
QSettings config("config/config.ini", QSettings::IniFormat);
config.beginGroup("Options");
QString max_players = config.value("max_players").toString();
config.endGroup();
@ -114,10 +114,7 @@ void AOClient::handlePacket(AOPacket packet)
fullArup(); // Give client all the area data
arup(ARUPType::PLAYER_COUNT, true); // Tell everyone there is a new player
QSettings areas_ini("areas.ini", QSettings::IniFormat);
QStringList areas = areas_ini.childGroups();
sendPacket("FA", areas);
sendPacket("FA", server->area_names);
sendPacket("OPPASS", {"DEADBEEF"});
sendPacket("DONE");
}

View File

@ -60,7 +60,7 @@ void Server::start()
music_list.insert(0, "Music");
// TODO: add verification that this exists
QSettings areas_ini("areas.ini", QSettings::IniFormat);
QSettings areas_ini("config/areas.ini", QSettings::IniFormat);
area_names = areas_ini.childGroups();
for (int i = 0; i < area_names.length(); i++) {
QString area_name = area_names[i];