mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-18 03:36:22 +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);
|
||||
}
|
||||
|
||||
// Setup disk cache if not already
|
||||
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();
|
||||
if (!networkAccessManager.cache()) {
|
||||
QString cachePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
||||
|
|
|
@ -40,6 +40,7 @@ void AssetRequest::start() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Try to load from cache
|
||||
if (loadFromCache()) {
|
||||
_info.hash = _hash;
|
||||
_info.size = _data.size();
|
||||
|
|
Loading…
Reference in a new issue