1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00

Merge remote-tracking branch 'corristo/osx-openmw-launch-fix'

This commit is contained in:
Marc Zinnschlag 2014-09-20 14:13:42 +02:00
commit cf5c5cbce7

View File

@ -1,6 +1,8 @@
#include "runner.hpp"
#include <QApplication>
#include <QDir>
#include <QTemporaryFile>
#include <QTextStream>
@ -47,7 +49,10 @@ void CSMDoc::Runner::start (bool delayed)
path.append(QString(".exe"));
#elif defined(Q_OS_MAC)
QDir dir(QCoreApplication::applicationDirPath());
path = dir.absoluteFilePath(name);
dir.cdUp();
dir.cdUp();
dir.cdUp();
path = dir.absoluteFilePath(path.prepend("OpenMW.app/Contents/MacOS/"));
#else
path.prepend(QString("./"));
#endif