From a9fc44f79ddfaaa4257fb7e09aaa7503f8596b42 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 3 Oct 2013 22:11:25 +0200 Subject: [PATCH] Fix filesystem init for relative 'gamePath's --- src/globalstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/globalstate.cpp b/src/globalstate.cpp index 82cb9d9..a316d9b 100644 --- a/src/globalstate.cpp +++ b/src/globalstate.cpp @@ -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());