mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:23:00 +02:00
Fixing OSX resources URL
This commit is contained in:
parent
25b778be1d
commit
6200d31c93
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ const QString& PathUtils::resourcesPath() {
|
||||||
char buffer[8192];
|
char buffer[8192];
|
||||||
uint32_t bufferSize = sizeof(buffer);
|
uint32_t bufferSize = sizeof(buffer);
|
||||||
_NSGetExecutablePath(buffer, &bufferSize);
|
_NSGetExecutablePath(buffer, &bufferSize);
|
||||||
staticResourcePath = QFileInfo(buffer).dir().absoluteFilePath("../Resources") + "/";
|
staticResourcePath = QDir::cleanPath(QFileInfo(buffer).dir().absoluteFilePath("../Resources")) + "/";
|
||||||
#else
|
#else
|
||||||
staticResourcePath = ":/";
|
staticResourcePath = ":/";
|
||||||
#endif
|
#endif
|
||||||
|
@ -94,7 +94,7 @@ const QString& PathUtils::resourcesUrl() {
|
||||||
std::call_once(once, [&]{
|
std::call_once(once, [&]{
|
||||||
|
|
||||||
#if defined(Q_OS_OSX)
|
#if defined(Q_OS_OSX)
|
||||||
QUrl::fromLocalFile(resourcesPath()).toString();
|
staticResourcePath = QUrl::fromLocalFile(resourcesPath()).toString();
|
||||||
#else
|
#else
|
||||||
staticResourcePath = "qrc:///";
|
staticResourcePath = "qrc:///";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue