mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
Show simple progress bars at the top of the screen during downloads.
Should do something more practical eventually.
This commit is contained in:
1 parent
29bbb826a1
commit
eaed2e516b
5 files changed
+46
-26
No files matched your search
+3
-3
@@ -112,18 +112,18 @@ StoreScreen::StoreScreen() : loading_(true), connectionError_(false) {
|
||||
|
||||
std::string indexPath = storeBaseUrl + "index.json";
|
||||
|
||||
listing_ = downloader_.StartDownload(indexPath, "");
|
||||
listing_ = g_DownloadManager.StartDownload(indexPath, "");
|
||||
}
|
||||
|
||||
StoreScreen::~StoreScreen() {
|
||||
downloader_.CancelAll();
|
||||
g_DownloadManager.CancelAll();
|
||||
}
|
||||
|
||||
// Handle async download tasks
|
||||
void StoreScreen::update(InputState &input) {
|
||||
UIDialogScreenWithBackground::update(input);
|
||||
|
||||
downloader_.Update();
|
||||
g_DownloadManager.Update();
|
||||
|
||||
if (listing_.get() != 0 && listing_->Done()) {
|
||||
if (listing_->ResultCode() == 200) {
|
||||
|
||||
Reference in new issue
Block a user