[Kernel] Implemented Game Info Database

This aggregates XDBF and XLAST into one entity.

Replaced UserData::Key into more versatile AttributeKey for future usage in properties
This commit is contained in:
Gliniak
2024-03-22 11:14:31 +01:00
parent 2709a5d3e8
commit 86bd62125d
16 changed files with 840 additions and 29 deletions

View File

@@ -146,7 +146,7 @@ class UserSetting {
X_USER_PROFILE_SETTING_SOURCE::DEFAULT;
X_USER_PROFILE_SETTING_HEADER header_ = {};
UserData::Key setting_id_ = {};
AttributeKey setting_id_ = {};
std::unique_ptr<UserData> user_data_ = nullptr;
};

View File

@@ -200,7 +200,7 @@ uint32_t XamUserReadProfileSettingsEx(uint32_t title_id, uint32_t user_index,
uint32_t needed_data_size = 0;
for (uint32_t i = 0; i < setting_count; ++i) {
needed_header_size += sizeof(X_USER_PROFILE_SETTING);
UserData::Key setting_key;
AttributeKey setting_key;
setting_key.value = static_cast<uint32_t>(setting_ids[i]);
switch (static_cast<X_USER_DATA_TYPE>(setting_key.type)) {
case X_USER_DATA_TYPE::WSTRING: