mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 04:37:59 +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() {
|
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
|
#ifdef Q_OS_MAC
|
||||||
static QString staticResourcePath = QCoreApplication::applicationDirPath() + "/../Resources/";
|
static QString staticResourcePath = QCoreApplication::applicationDirPath() + "/../Resources/";
|
||||||
#else
|
#else
|
||||||
static QString staticResourcePath = QCoreApplication::applicationDirPath() + "/resources/";
|
static QString staticResourcePath = QCoreApplication::applicationDirPath() + "/resources/";
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return staticResourcePath;
|
return staticResourcePath;
|
||||||
|
|
Loading…
Reference in a new issue