Refactor a bit, preparing for async download

This commit is contained in:
Henrik Rydgård committed 2026-03-05 14:30:32 +01:00
1 parent a0327ff5d5
commit cc49e5079d
6 files changed
+36 -35

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ std::shared_ptr<Request> RequestManager::StartDownload(std::string_view url, con
if (File::ReadBinaryFileToString(cacheFile, &contents)) {
INFO_LOG(Log::sceNet, "Returning cached file for %.*s: %s", (int)url.size(), url.data(), cacheFile.c_str());
// All is well, but we've indented a bit much here.
std::shared_ptr<Request> dl(new CachedRequest(RequestMethod::GET, url, "infra-dns.json", nullptr, flags, contents));
std::shared_ptr<Request> dl(new CachedRequest(RequestMethod::GET, url, KeepAfterLast(url, '/'), nullptr, flags, contents));
newDownloads_.push_back(dl);
return dl;
} else {