mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +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];
|
||||
uint32_t bufferSize = sizeof(buffer);
|
||||
_NSGetExecutablePath(buffer, &bufferSize);
|
||||
staticResourcePath = QFileInfo(buffer).dir().absoluteFilePath("../Resources") + "/";
|
||||
staticResourcePath = QDir::cleanPath(QFileInfo(buffer).dir().absoluteFilePath("../Resources")) + "/";
|
||||
#else
|
||||
staticResourcePath = ":/";
|
||||
#endif
|
||||
|
@ -94,7 +94,7 @@ const QString& PathUtils::resourcesUrl() {
|
|||
std::call_once(once, [&]{
|
||||
|
||||
#if defined(Q_OS_OSX)
|
||||
QUrl::fromLocalFile(resourcesPath()).toString();
|
||||
staticResourcePath = QUrl::fromLocalFile(resourcesPath()).toString();
|
||||
#else
|
||||
staticResourcePath = "qrc:///";
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue