achievement_manager: added UnlockAll method

Because I'm tired of writing this every time I need to debug unlocking achievements.
This commit is contained in:
Hyper 2025-02-07 10:30:03 +00:00
parent 6c8dbdb6bc
commit 62ad3a1a13
2 changed files with 15 additions and 0 deletions

View file

@ -67,6 +67,20 @@ void AchievementManager::Unlock(uint16_t id)
AchievementOverlay::Open(id);
}
void AchievementManager::UnlockAll()
{
for (uint16_t i = 24; i <= 83; i++)
{
if (i == 30)
i = 31;
if (i == 55)
i = 64;
AchievementManager::Unlock(i);
}
}
void AchievementManager::Reset()
{
Data = {};

View file

@ -27,6 +27,7 @@ public:
static size_t GetTotalRecords();
static bool IsUnlocked(uint16_t id);
static void Unlock(uint16_t id);
static void UnlockAll();
static void Reset();
static void Load();
static void Save(bool ignoreStatus = false);