path to UTF8

configfile split
This commit is contained in:
doitux
2007-04-18 00:11:24 +00:00
parent 27cd08ccb0
commit 2b94ce958f
33 changed files with 565 additions and 498 deletions
+3 -1
View File
@@ -21,6 +21,7 @@
#include "mainwindowimpl.h"
#include <game_defs.h>
#include "session.h"
using namespace std;
@@ -28,7 +29,8 @@ Log::Log(mainWindowImpl* w) : myW(w)
{
myW->setLog(this);
myConfig = new ConfigFile;
myConfig = new ConfigFile(myW->getSession()->getConfigPath());
if(myConfig->readConfigString("LogDir") != "" && QDir::QDir(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str())).exists()) {
#ifdef _WIN32