[Kernel] Put achievement enumerator in xenumerator file

This commit is contained in:
Gliniak
2023-12-19 18:49:33 +01:00
parent 57a23cf192
commit a5596332c9
4 changed files with 123 additions and 120 deletions

View File

@@ -19,6 +19,26 @@
namespace xe {
namespace kernel {
// TODO(gibbed): probably a FILETIME/LARGE_INTEGER, unknown currently
struct X_ACHIEVEMENT_UNLOCK_TIME {
xe::be<uint32_t> unk_0;
xe::be<uint32_t> unk_4;
};
struct X_ACHIEVEMENT_DETAILS {
xe::be<uint32_t> id;
xe::be<uint32_t> label_ptr;
xe::be<uint32_t> description_ptr;
xe::be<uint32_t> unachieved_ptr;
xe::be<uint32_t> image_id;
xe::be<uint32_t> gamerscore;
X_ACHIEVEMENT_UNLOCK_TIME unlock_time;
xe::be<uint32_t> flags;
static const size_t kStringBufferSize = 464;
};
static_assert_size(X_ACHIEVEMENT_DETAILS, 36);
class AchievementManager {
public:
AchievementManager();