[Achievements] XamUserCreateAchievementEnumerator - title_id 0 behaviour

Based on research 0 in title_id is interpreted as current game
This commit is contained in:
Gliniak 2019-12-14 16:38:52 +01:00
parent b36fce858e
commit 38579b4156
1 changed files with 2 additions and 1 deletions

View File

@ -572,7 +572,8 @@ dword_result_t XamUserCreateAchievementEnumerator(dword_t title_id,
*handle_ptr = e->handle();
// 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) {
XELOGE(
"XamUserCreateAchievementEnumerator failed to find GPD for title %X!",