Android: Track whether app is in foreground

This commit is contained in:
JosJuice
2024-06-15 18:15:45 +02:00
committed by LillyJadeKatrin
parent c536754ffe
commit 01b44837f4
6 changed files with 73 additions and 1 deletions

View File

@ -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,

View File

@ -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() {}