From 9f7a8462d8919b93ee1d727631ef5bfaea78defa Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Sat, 20 Sep 2014 13:33:28 +0400 Subject: [PATCH] Fix build & OpenCS game runner code on OS X --- apps/opencs/model/doc/runner.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/opencs/model/doc/runner.cpp b/apps/opencs/model/doc/runner.cpp index d473a7e7a..d679c1890 100644 --- a/apps/opencs/model/doc/runner.cpp +++ b/apps/opencs/model/doc/runner.cpp @@ -1,6 +1,8 @@ #include "runner.hpp" +#include +#include #include #include @@ -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