Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/MarbleDirs.cpp
Context not available. | |||||
30 | #include <shlobj.h> | 30 | #include <shlobj.h> | ||
---|---|---|---|---|---|
31 | #endif | 31 | #endif | ||
32 | 32 | | |||
33 | #ifdef Q_OS_MACX | 33 | #ifdef APPLE_STANDALONE_BUNDLE | ||
34 | //for getting app bundle path | 34 | //for getting app bundle path | ||
35 | #include <ApplicationServices/ApplicationServices.h> | 35 | #include <ApplicationServices/ApplicationServices.h> | ||
36 | #endif | 36 | #endif | ||
Context not available. | |||||
130 | return QCoreApplication::applicationDirPath() + QDir::separator() + "data"; | 130 | return QCoreApplication::applicationDirPath() + QDir::separator() + "data"; | ||
131 | #endif | 131 | #endif | ||
132 | 132 | | |||
133 | #ifdef Q_OS_MACX | 133 | #ifdef APPLE_STANDALONE_BUNDLE | ||
134 | // | 134 | // | ||
135 | // On OSX lets try to find any file first in the bundle | 135 | // On OSX lets try to find any file first in the bundle | ||
136 | // before branching out to home and sys dirs | 136 | // before branching out to home and sys dirs | ||
Context not available. | |||||
145 | //marble was not built as a bundle | 145 | //marble was not built as a bundle | ||
146 | if (myPath.contains(".app")) //its a bundle! | 146 | if (myPath.contains(".app")) //its a bundle! | ||
147 | { | 147 | { | ||
148 | systempath = myPath + "/Contents/Resources/data"; | 148 | systempath = myPath + "/Contents/Resources"; | ||
149 | } | 149 | } | ||
150 | 150 | | |||
151 | if ( QFile::exists( systempath ) ){ | 151 | if ( QFile::exists( systempath ) ){ | ||
Context not available. | |||||
184 | 184 | | |||
185 | QString systempath; | 185 | QString systempath; | ||
186 | 186 | | |||
187 | #ifdef Q_OS_MACX | 187 | #ifdef APPLE_STANDALONE_BUNDLE | ||
188 | // | 188 | // | ||
189 | // On OSX lets try to find any file first in the bundle | 189 | // On OSX lets try to find any file first in the bundle | ||
190 | // before branching out to home and sys dirs | 190 | // before branching out to home and sys dirs | ||
Context not available. |