mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 05:43:36 +02:00
Added a couple comments
This commit is contained in:
parent
9678e70444
commit
dd0244b15d
2 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ void AssetClient::init() {
|
||||||
QMetaObject::invokeMethod(this, "init", Qt::BlockingQueuedConnection);
|
QMetaObject::invokeMethod(this, "init", Qt::BlockingQueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup disk cache if not already
|
||||||
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();
|
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();
|
||||||
if (!networkAccessManager.cache()) {
|
if (!networkAccessManager.cache()) {
|
||||||
QString cachePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
QString cachePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
||||||
|
|
|
@ -40,6 +40,7 @@ void AssetRequest::start() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Try to load from cache
|
||||||
if (loadFromCache()) {
|
if (loadFromCache()) {
|
||||||
_info.hash = _hash;
|
_info.hash = _hash;
|
||||||
_info.size = _data.size();
|
_info.size = _data.size();
|
||||||
|
|
Loading…
Reference in a new issue