Homebrew Store: Add support for cancelling downloads, fix progress bar. Fixes #9374

This commit is contained in:
Henrik Rydgård committed 2017-03-06 16:03:05 +01:00
1 parent 56e0d5ece2
commit 85c8d9b806
10 files changed
+82 -27

No files matched your search

+9
View File
@@ -73,6 +73,15 @@ bool GameManager::DownloadAndInstall(std::string storeZipUrl) {
return true;
}
bool GameManager::CancelDownload() {
if (!curDownload_)
return false;
curDownload_->Cancel();
curDownload_.reset();
return true;
}
bool GameManager::Uninstall(std::string name) {
if (name.empty()) {
ERROR_LOG(HLE, "Cannot remove an empty-named game");