Android: Track whether app is in foreground
This commit is contained in:
1 parent
c536754ffe
commit
01b44837f4
6 files changed
+73
-1
No files matched your search
@@ -158,6 +158,10 @@ bool AchievementManager::IsGameLoaded() const
|
||||
return game_info && game_info->id != 0;
|
||||
}
|
||||
|
||||
void AchievementManager::SetBackgroundExecutionAllowed(bool allowed)
|
||||
{
|
||||
}
|
||||
|
||||
void AchievementManager::FetchPlayerBadge()
|
||||
{
|
||||
FetchBadge(&m_player_badge, RC_IMAGE_TYPE_USER,
|
||||
|
||||
@@ -96,6 +96,7 @@ public:
|
||||
bool HasAPIToken() const;
|
||||
void LoadGame(const std::string& file_path, const DiscIO::Volume* volume);
|
||||
bool IsGameLoaded() const;
|
||||
void SetBackgroundExecutionAllowed(bool allowed);
|
||||
|
||||
void FetchPlayerBadge();
|
||||
void FetchGameBadges();
|
||||
@@ -239,6 +240,8 @@ public:
|
||||
|
||||
constexpr void LoadGame(const std::string&, const DiscIO::Volume*) {}
|
||||
|
||||
constexpr void SetBackgroundExecutionAllowed(bool allowed) {}
|
||||
|
||||
constexpr void DoFrame() {}
|
||||
|
||||
constexpr void CloseGame() {}
|
||||
|
||||
Reference in new issue
Block a user