Revert "[XAM/User] Added title_id == 0 check for few User functions"
This reverts commit 05433007c5
.
This commit is contained in:
parent
2749ab1284
commit
6e538300c1
|
@ -254,7 +254,7 @@ dword_result_t XamUserReadProfileSettings(
|
||||||
|
|
||||||
auto gpd = user_profile->GetDashboardGpd();
|
auto gpd = user_profile->GetDashboardGpd();
|
||||||
if (title_id != kDashboardID) {
|
if (title_id != kDashboardID) {
|
||||||
gpd = user_profile->GetTitleGpd(!title_id ? kernel_state()->title_id() : title_id);
|
gpd = user_profile->GetTitleGpd(title_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// First call asks for size (fill buffer_size_ptr).
|
// First call asks for size (fill buffer_size_ptr).
|
||||||
|
@ -403,8 +403,7 @@ dword_result_t XamUserWriteProfileSettings(
|
||||||
|
|
||||||
auto gpd = user_profile->GetDashboardGpd();
|
auto gpd = user_profile->GetDashboardGpd();
|
||||||
if (title_id != kDashboardID) {
|
if (title_id != kDashboardID) {
|
||||||
gpd = user_profile->GetTitleGpd(!title_id ? kernel_state()->title_id()
|
gpd = user_profile->GetTitleGpd(title_id);
|
||||||
: title_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gpd) {
|
if (!gpd) {
|
||||||
|
@ -606,9 +605,7 @@ dword_result_t XamUserCreateAchievementEnumerator(dword_t title_id,
|
||||||
*handle_ptr = e->handle();
|
*handle_ptr = e->handle();
|
||||||
|
|
||||||
// Copy achievements into the enumerator if game GPD is loaded
|
// Copy achievements into the enumerator if game GPD is loaded
|
||||||
auto* game_gpd = user_profile->GetTitleGpd(
|
auto* game_gpd = user_profile->GetTitleGpd(title_id);
|
||||||
!title_id ? kernel_state()->title_id() : title_id);
|
|
||||||
|
|
||||||
if (!game_gpd) {
|
if (!game_gpd) {
|
||||||
XELOGE(
|
XELOGE(
|
||||||
"XamUserCreateAchievementEnumerator failed to find GPD for title %X!",
|
"XamUserCreateAchievementEnumerator failed to find GPD for title %X!",
|
||||||
|
|
Loading…
Reference in New Issue