From dac31994b69f659ee98a23c1f546a1353a6c53a1 Mon Sep 17 00:00:00 2001 From: xawotihs Date: Wed, 30 Oct 2013 21:44:23 +0100 Subject: [PATCH] Adding traces for important directories. --- JGE/src/JFileSystem.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/JGE/src/JFileSystem.cpp b/JGE/src/JFileSystem.cpp index 659f09408..3948dc4cc 100644 --- a/JGE/src/JFileSystem.cpp +++ b/JGE/src/JFileSystem.cpp @@ -16,9 +16,7 @@ User folder is the only one that is really needed to guarantee both read and wri The content that users should not be touching. */ -#if defined(ANDROID) -#include "../../include/PrecompiledHeader.h" -#endif +#include "PrecompiledHeader.h" #ifdef WIN32 #pragma warning(disable : 4786) @@ -125,13 +123,18 @@ JFileSystem::JFileSystem(const string & _userPath, const string & _systemPath) DebugTrace("User path " << userPath); #elif defined (QT_CONFIG) - QDir dir(QDir::homePath()); - dir.cd(USERDIR); QDir sysDir("projects/mtg/bin/Res"); + QDir dir(QDir::homePath()); + dir.mkdir(USERDIR); + dir.cd(USERDIR); userPath = QDir::toNativeSeparators(dir.absolutePath()).toStdString(); systemPath = QDir::toNativeSeparators(sysDir.absolutePath()).toStdString(); + + DebugTrace("User path " << userPath); + DebugTrace("System path " << systemPath); + DebugTrace("Current path " << QDir::currentPath().toStdString()); #else //Find the Res.txt file and matching Res folders for backwards compatibility ifstream mfile("Res.txt");