[Achievements] XamUserCreateAchievementEnumerator - title_id 0 behaviour
Based on research 0 in title_id is interpreted as current game
This commit is contained in:
parent
d9735d3702
commit
5872860ddf
|
@ -572,7 +572,8 @@ 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 = kernel_state()->user_profile()->GetTitleGpd(title_id);
|
auto* game_gpd = kernel_state()->user_profile()->GetTitleGpd(
|
||||||
|
title_id ? title_id : kernel_state()->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