Fix filesystem init for relative 'gamePath's
This commit is contained in:
parent
4ddc487f17
commit
a9fc44f79d
|
@ -110,11 +110,11 @@ struct GlobalStatePrivate
|
||||||
{
|
{
|
||||||
int unused = chdir(config.gameFolder.constData());
|
int unused = chdir(config.gameFolder.constData());
|
||||||
(void) unused;
|
(void) unused;
|
||||||
fileSystem.addPath(config.gameFolder.constData());
|
fileSystem.addPath(".");
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME find out correct archive filename
|
// FIXME find out correct archive filename
|
||||||
QByteArray archPath = threadData->config.gameFolder + "/" GAME_ARCHIVE;
|
QByteArray archPath = GAME_ARCHIVE;
|
||||||
|
|
||||||
if (QFile::exists(archPath.constData()))
|
if (QFile::exists(archPath.constData()))
|
||||||
fileSystem.addPath(archPath.constData());
|
fileSystem.addPath(archPath.constData());
|
||||||
|
|
Loading…
Reference in New Issue