path to UTF8
configfile split
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user