[Kernel] Fix achievement iterator inside XGIUserWriteAchievements
Thanks to jgoyvaerts for noticing it!
This commit is contained in:
parent
40145b8dbb
commit
9b8ebcfe7b
|
@ -70,8 +70,8 @@ X_RESULT XgiApp::DispatchMessageSync(uint32_t message, uint32_t buffer_ptr,
|
||||||
bool modified = false;
|
bool modified = false;
|
||||||
auto* achievement =
|
auto* achievement =
|
||||||
(X_XUSER_ACHIEVEMENT*)memory_->TranslateVirtual(achievements_ptr);
|
(X_XUSER_ACHIEVEMENT*)memory_->TranslateVirtual(achievements_ptr);
|
||||||
for (uint32_t i = 0; i < achievement_count; i++) {
|
util::XdbfAchievement ach;
|
||||||
util::XdbfAchievement ach;
|
for (uint32_t i = 0; i < achievement_count; i++, achievement++) {
|
||||||
if (game_gpd->GetAchievement(achievement->achievement_id, &ach)) {
|
if (game_gpd->GetAchievement(achievement->achievement_id, &ach)) {
|
||||||
if (!ach.IsUnlocked()) {
|
if (!ach.IsUnlocked()) {
|
||||||
XELOGI("Achievement Unlocked! %ws (%d gamerscore) - %ws",
|
XELOGI("Achievement Unlocked! %ws (%d gamerscore) - %ws",
|
||||||
|
|
Loading…
Reference in New Issue