mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
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:
parent
6c8dbdb6bc
commit
62ad3a1a13
2 changed files with 15 additions and 0 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue