add default config files

This commit is contained in:
scatterflower 2020-09-02 08:31:27 -05:00
parent 24dfc3cdb8
commit 002136ac63
6 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@ -70,6 +70,5 @@ Thumbs.db
*.dll *.dll
*.exe *.exe
bin/
build/ build/
bin/akashi

View File

@ -43,14 +43,14 @@ void Server::start()
if(ws_port != -1) if(ws_port != -1)
proxy->start(); proxy->start();
QFile char_list("characters.txt"); QFile char_list("config/characters.txt");
char_list.open(QIODevice::ReadOnly | QIODevice::Text); char_list.open(QIODevice::ReadOnly | QIODevice::Text);
while (!char_list.atEnd()) { while (!char_list.atEnd()) {
characters.append(char_list.readLine().trimmed()); characters.append(char_list.readLine().trimmed());
} }
char_list.close(); char_list.close();
QFile music_file("music.txt"); QFile music_file("config/music.txt");
music_file.open(QIODevice::ReadOnly | QIODevice::Text); music_file.open(QIODevice::ReadOnly | QIODevice::Text);
while (!music_file.atEnd()) { while (!music_file.atEnd()) {
music_list.append(music_file.readLine().trimmed()); music_list.append(music_file.readLine().trimmed());