Feature/assets (#1784)

General overhaul of the Asset loading system
This commit is contained in:
Alexander Bock
2021-12-19 21:04:01 +04:00
committed by GitHub
parent f8b5d4b662
commit debcb43ade
167 changed files with 3251 additions and 4441 deletions

View File

@@ -40,9 +40,6 @@ VersionChecker::~VersionChecker() {
}
void VersionChecker::requestLatestVersion(const std::string& url) {
HttpRequest::RequestOptions opt;
opt.requestTimeoutSeconds = 0;
std::string fullUrl = fmt::format(
"{}?client_version={}&commit_hash={}",
url, OPENSPACE_VERSION_NUMBER, OPENSPACE_GIT_COMMIT
@@ -54,8 +51,8 @@ void VersionChecker::requestLatestVersion(const std::string& url) {
_request = nullptr;
}
_request = std::make_unique<AsyncHttpMemoryDownload>(std::move(fullUrl));
_request->start(opt);
_request = std::make_unique<HttpMemoryDownload>(std::move(fullUrl));
_request->start();
}
void VersionChecker::cancel() {