mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 22:05:45 -04:00
Cheevos: Implement hardcore mode
This commit is contained in:
@ -21,6 +21,7 @@ struct Achievement
|
||||
};
|
||||
|
||||
extern bool g_active;
|
||||
extern bool g_challenge_mode;
|
||||
extern u32 g_game_id;
|
||||
|
||||
ALWAYS_INLINE bool IsActive()
|
||||
@ -28,6 +29,16 @@ ALWAYS_INLINE bool IsActive()
|
||||
return g_active;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE bool IsChallengeModeEnabled()
|
||||
{
|
||||
return g_challenge_mode;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE bool IsChallengeModeActive()
|
||||
{
|
||||
return g_active && g_challenge_mode;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE bool HasActiveGame()
|
||||
{
|
||||
return g_game_id != 0;
|
||||
@ -38,7 +49,7 @@ ALWAYS_INLINE u32 GetGameID()
|
||||
return g_game_id;
|
||||
}
|
||||
|
||||
bool Initialize(bool test_mode, bool use_first_disc_from_playlist, bool enable_rich_presence);
|
||||
bool Initialize(bool test_mode, bool use_first_disc_from_playlist, bool enable_rich_presence, bool challenge_mode);
|
||||
void Reset();
|
||||
void Shutdown();
|
||||
void Update();
|
||||
|
Reference in New Issue
Block a user