[XAM] Added util functions to check gamer picture type

This commit is contained in:
Adrian
2025-07-23 00:18:58 +01:00
committed by Radosław Gliński
parent 3e6a74be13
commit fdbf22502d
3 changed files with 42 additions and 1 deletions

View File

@@ -788,6 +788,16 @@ dword_result_t XamParseGamerTileKey_entry(pointer_t<X_USER_DATA> key_ptr,
string_util::from_string<uint32_t>(small_tile_id, true);
}
bool is_from_dash = false;
bool is_avatar = false;
bool is_custom = false;
if (title_id_ptr) {
is_from_dash = IsGamerPictureFromDash(*title_id_ptr);
is_avatar = IsGamerPictureAvatar(*title_id_ptr);
is_custom = IsGamerPictureCustom(*title_id_ptr);
}
return X_ERROR_SUCCESS;
}
DECLARE_XAM_EXPORT1(XamParseGamerTileKey, kUserProfiles, kImplemented);