mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Merge pull request #4709 from jherico/resources
Removing debug hack to load resources from source folder
This commit is contained in:
commit
1acd27db08
1 changed files with 0 additions and 9 deletions
|
@ -19,19 +19,10 @@
|
|||
|
||||
|
||||
QString& PathUtils::resourcesPath() {
|
||||
#ifdef DEBUG
|
||||
static QString staticResourcePath;
|
||||
if (staticResourcePath.isEmpty()) {
|
||||
QDir path(__FILE__);
|
||||
path.cdUp();
|
||||
staticResourcePath = path.cleanPath(path.absoluteFilePath("../../../interface/resources/")) + "/";
|
||||
}
|
||||
#else
|
||||
#ifdef Q_OS_MAC
|
||||
static QString staticResourcePath = QCoreApplication::applicationDirPath() + "/../Resources/";
|
||||
#else
|
||||
static QString staticResourcePath = QCoreApplication::applicationDirPath() + "/resources/";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return staticResourcePath;
|
||||
|
|
Loading…
Reference in a new issue