mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 12:24:01 +02:00
try using app-local-data path for /~/
This commit is contained in:
parent
3ee979fc34
commit
1e49dc5ca2
2 changed files with 4 additions and 2 deletions
|
@ -1164,6 +1164,7 @@ void MyAvatar::loadData() {
|
|||
updateAvatarEntity(entityID, properties);
|
||||
}
|
||||
settings.endArray();
|
||||
qDebug() << "QQQQ saved " << avatarEntityCount << " avatar entities";
|
||||
if (avatarEntityCount == 0) {
|
||||
// HACK: manually remove empty 'avatarEntityData' else legacy data may persist in settings file
|
||||
settings.remove("avatarEntityData");
|
||||
|
|
|
@ -81,7 +81,7 @@ const QString& PathUtils::resourcesPath() {
|
|||
#else
|
||||
staticResourcePath = ":/";
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(Q_OS_ANDROID) && defined(DEV_BUILD)
|
||||
if (USE_SOURCE_TREE_RESOURCES()) {
|
||||
// For dev builds, optionally load content from the Git source tree
|
||||
|
@ -124,8 +124,9 @@ QUrl PathUtils::expandToAppAbsolutePath(const QUrl& fileUrl) {
|
|||
QUrl url = fileUrl;
|
||||
QString path = fileUrl.path();
|
||||
if (path.startsWith("/~/")) {
|
||||
path.replace(0, 3, resourcesUrl());
|
||||
path.replace(0, 3, getAppLocalDataPath());
|
||||
url = QUrl(path);
|
||||
qDebug() << "QQQQ expandToAppAbsolutePath: " << fileUrl << url;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue