mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
GameManager: Add functions to query progress
This commit is contained in:
+14
-1
@@ -24,6 +24,8 @@
|
||||
|
||||
class GameManager {
|
||||
public:
|
||||
GameManager();
|
||||
|
||||
bool IsGameInstalled(std::string name);
|
||||
|
||||
// This starts off a background process.
|
||||
@@ -34,10 +36,21 @@ public:
|
||||
// main UI thread.
|
||||
void Update();
|
||||
|
||||
// Returns false if no install is in progress.
|
||||
bool IsInstallInProgress() const {
|
||||
return installInProgress_;
|
||||
}
|
||||
float GetCurrentInstallProgress() const {
|
||||
return installProgress_;
|
||||
}
|
||||
|
||||
private:
|
||||
void InstallGame(std::string zipfile);
|
||||
bool InstallGame(std::string zipfile);
|
||||
std::string GetTempFilename() const;
|
||||
std::shared_ptr<http::Download> curDownload_;
|
||||
|
||||
bool installInProgress_;
|
||||
float installProgress_;
|
||||
};
|
||||
|
||||
extern GameManager g_GameManager;
|
||||
|
||||
Reference in New Issue
Block a user