[Kernel] Store earned achievements in-memory to prevent achievements spam

This doesn't store them externally so after restarting they will unlock again
This commit is contained in:
Gliniak
2023-10-25 09:17:38 +02:00
parent 2509b03b81
commit ebdea6b02a
3 changed files with 36 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#ifndef XENIA_KERNEL_ACHIEVEMENT_MANAGER_H_
#define XENIA_KERNEL_ACHIEVEMENT_MANAGER_H_
#include <map>
#include <string>
#include <vector>
@@ -25,7 +26,11 @@ class AchievementManager {
void EarnAchievement(uint64_t xuid, uint32_t title_id,
uint32_t achievement_id);
bool IsAchievementUnlocked(uint32_t achievement_id);
uint64_t GetAchievementUnlockTime(uint32_t achievement_id);
private:
std::map<uint32_t, uint64_t> unlocked_achievements;
// void Load();
// void Save();
};