- Moved the resource URL inside the QML app

- Updated local path for all the platforms
- Fixed local path creation problem on Linux
This commit is contained in:
Xawotihs
2012-01-06 23:54:57 +00:00
parent 1f3aedcd3f
commit d9625ed034
7 changed files with 46 additions and 16 deletions

View File

@@ -116,10 +116,11 @@ JFileSystem::JFileSystem(const string & _userPath, const string & _systemPath)
userPath = "/sdcard/Wagic/Res/";
systemPath = "";
#elif defined (QT_CONFIG)
// userPath = USERDIR;
// systemPath = RESDIR;
userPath = QDir::toNativeSeparators(QDir::homePath()).toStdString() + "/.wagic/";
systemPath = "";
QDir dir(QDir::homePath());
dir.cd(USERDIR);
userPath = QDir::toNativeSeparators(dir.absolutePath()).toStdString();
systemPath = "";
#else
//Find the Res.txt file and matching Res folders for backwards compatibility
ifstream mfile("Res.txt");