Fix filesystem init for relative 'gamePath's

This commit is contained in:
Jonas Kulla 2013-10-03 22:11:25 +02:00
parent 4ddc487f17
commit a9fc44f79d
1 changed files with 2 additions and 2 deletions

View File

@ -110,11 +110,11 @@ struct GlobalStatePrivate
{
int unused = chdir(config.gameFolder.constData());
(void) unused;
fileSystem.addPath(config.gameFolder.constData());
fileSystem.addPath(".");
}
// FIXME find out correct archive filename
QByteArray archPath = threadData->config.gameFolder + "/" GAME_ARCHIVE;
QByteArray archPath = GAME_ARCHIVE;
if (QFile::exists(archPath.constData()))
fileSystem.addPath(archPath.constData());