mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
make any asset path relative to assets dir
This commit is contained in:
parent
8c2d69f865
commit
27d338e81c
2 changed files with 2 additions and 3 deletions
|
@ -89,7 +89,7 @@ void AssetServer::completeSetup() {
|
||||||
if (assetsPath.isRelative()) {
|
if (assetsPath.isRelative()) {
|
||||||
// if the domain settings passed us a relative path, make an absolute path that is relative to the
|
// if the domain settings passed us a relative path, make an absolute path that is relative to the
|
||||||
// default data directory
|
// default data directory
|
||||||
absoluteFilePath = ServerPathUtils::getDataFilePath(assetsPathString);
|
absoluteFilePath = ServerPathUtils::getDataFilePath("assets/" + assetsPathString);
|
||||||
}
|
}
|
||||||
|
|
||||||
_resourcesDirectory = QDir(absoluteFilePath);
|
_resourcesDirectory = QDir(absoluteFilePath);
|
||||||
|
|
|
@ -184,8 +184,7 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"label": "Assets Path",
|
"label": "Assets Path",
|
||||||
"help": "The path to the directory assets are stored in.<br/>If this path is relative, it will be relative to the application data directory.<br/>If you change this path you will need to manually copy any existing assets from the previous directory.",
|
"help": "The path to the directory assets are stored in.<br/>If this path is relative, it will be relative to the application data directory.<br/>If you change this path you will need to manually copy any existing assets from the previous directory.",
|
||||||
"placeholder": "assets",
|
"default": "",
|
||||||
"default": "assets",
|
|
||||||
"advanced": true
|
"advanced": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue