mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 16:21:33 +02:00
Use the `applicationDirPath on Mac
This commit is contained in:
parent
2307be2785
commit
bfe7742e97
1 changed files with 4 additions and 0 deletions
|
@ -355,7 +355,11 @@ void TestRunner::saveExistingHighFidelityAppDataFolder() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy an "empty" AppData folder (i.e. no entities)
|
// Copy an "empty" AppData folder (i.e. no entities)
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
QDir canonicalAppDataFolder{ QDir::currentPath() + "/AppDataHighFidelity" };
|
QDir canonicalAppDataFolder{ QDir::currentPath() + "/AppDataHighFidelity" };
|
||||||
|
#elif defined Q_OS_MAC
|
||||||
|
QDir canonicalAppDataFolder{ QCoreApplication::applicationDirPath() + "/AppDataHighFidelity" };
|
||||||
|
#endif
|
||||||
if (canonicalAppDataFolder.exists()) {
|
if (canonicalAppDataFolder.exists()) {
|
||||||
copyFolder(canonicalAppDataFolder.path(), _appDataFolder.path());
|
copyFolder(canonicalAppDataFolder.path(), _appDataFolder.path());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue