mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +02:00
Fix asset server not creating resources directory before migrating
This commit is contained in:
parent
99bb1fcbe1
commit
f9718931b0
1 changed files with 3 additions and 3 deletions
|
@ -54,6 +54,9 @@ void AssetServer::run() {
|
||||||
|
|
||||||
_resourcesDirectory = QDir(ServerPathUtils::getDataDirectory()).filePath(RESOURCES_PATH);
|
_resourcesDirectory = QDir(ServerPathUtils::getDataDirectory()).filePath(RESOURCES_PATH);
|
||||||
|
|
||||||
|
qDebug() << "Creating resources directory";
|
||||||
|
_resourcesDirectory.mkpath(".");
|
||||||
|
|
||||||
bool noExistingAssets = !_resourcesDirectory.exists() \
|
bool noExistingAssets = !_resourcesDirectory.exists() \
|
||||||
|| _resourcesDirectory.entryList(QDir::Files).size() == 0;
|
|| _resourcesDirectory.entryList(QDir::Files).size() == 0;
|
||||||
|
|
||||||
|
@ -83,9 +86,6 @@ void AssetServer::run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "Creating resources directory";
|
|
||||||
_resourcesDirectory.mkpath(".");
|
|
||||||
}
|
}
|
||||||
qDebug() << "Serving files from: " << _resourcesDirectory.path();
|
qDebug() << "Serving files from: " << _resourcesDirectory.path();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue