trophy: track _UpdateTrophyProgress UDS events (Octopath Traveler II) #2104

Manually merged
github merged 2 commits from gh-pr/2104/head into gh-pr/2104/base 2026-11-26 10:14:26 +00:00
Owner

@⁠Alexey-Izilianov on GitHub · 2026-11-04 08:58 UTC · original
Alexey-Izilianov:trophy-uds-reported-progress → main · +263 −22 · 4 files · 2 commits · merged 2026-11-04 12:21 UTC

Octopath Traveler II (PPSA09809) reports trophy progress through _UpdateTrophyProgress, which previously fell through without updating or unlocking trophies. Fixes the remaining trophy gap in #1617.

  • Persist the highest reported progress per trophy, retaining compatibility with existing unlock files.
  • Require nonnegative Int32 _trophy_id and _trophy_progress properties. Reject missing or incorrectly typed properties before changing state.
  • Unlock at the target through the existing trophy/platinum path; guests do not record progress. Trophy queries return the greater of reported and stat progress, capped at the target.

Validation: focused trophy_system_tests built and passed on Linux with clang++. Coverage includes zero, partial progress, reload, lower reports, target/unlock persistence, platinum, guests, and missing/negative/wrong-type properties with no state changes. The new type-validation regression fails on the original implementation. In-game behavior remains unverified.

**@⁠Alexey-Izilianov** on GitHub · 2026-11-04 08:58 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2104) `Alexey-Izilianov:trophy-uds-reported-progress` → `main` · +263 −22 · 4 files · 2 commits · merged 2026-11-04 12:21 UTC Octopath Traveler II (PPSA09809) reports trophy progress through `_UpdateTrophyProgress`, which previously fell through without updating or unlocking trophies. Fixes the remaining trophy gap in #1617. - Persist the highest reported progress per trophy, retaining compatibility with existing unlock files. - Require nonnegative Int32 `_trophy_id` and `_trophy_progress` properties. Reject missing or incorrectly typed properties before changing state. - Unlock at the target through the existing trophy/platinum path; guests do not record progress. Trophy queries return the greater of reported and stat progress, capped at the target. Validation: focused `trophy_system_tests` built and passed on Linux with clang++. Coverage includes zero, partial progress, reload, lower reports, target/unlock persistence, platinum, guests, and missing/negative/wrong-type properties with no state changes. The new type-validation regression fails on the original implementation. In-game behavior remains unverified.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:14:22 +00:00
github manually merged commit 9d4af8b4df into gh-pr/2104/base 2026-11-26 10:14:26 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-04 09:04 UTC · original · edited 2026-11-04 12:22 UTC

Explain Change →

Walkthrough

The change adds persistent reported progress for eligible progressive trophies. UDS progress events validate trophy IDs and values, update progress for non-guest users, and record an unlock when progress reaches its target. Locked progressive trophy information combines reported progress with linked maximum-stat progress. Tests cover progress updates, persistence, event validation, and unlock notifications.

Suggested reviewers: nmzik

Change: Bug fix

Merge Risk: Low · up to 178d2

Reported progress can be lost after a temporary save failure and restart. Retrying unsaved progress would protect it.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: tracking _UpdateTrophyProgress UDS events for trophy progress in Octopath Traveler II.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description directly explains the trophy progress changes, validation rules, persistence behavior, unlock handling, guest behavior, testing, and known verification limits. It matches the changeset…
Full details: Description check

Explanation

The description directly explains the trophy progress changes, validation rules, persistence behavior, unlock handling, guest behavior, testing, and known verification limits. It matches the changeset.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 12 functions across 4 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
**@⁠coderabbitai[bot]** on GitHub · 2026-11-04 09:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2104#issuecomment-6626962620) · edited 2026-11-04 12:22 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2104?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> The change adds persistent reported progress for eligible progressive trophies. UDS progress events validate trophy IDs and values, update progress for non-guest users, and record an unlock when progress reaches its target. Locked progressive trophy information combines reported progress with linked maximum-stat progress. Tests cover progress updates, persistence, event validation, and unlock notifications. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"178d22c0b8450abcc92ef52b3733aae89b05d1d9" --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong> · up to <code>178d2</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🔵 Low** · up to `178d2` --> <!-- final_review_risk_coverage:{"sourceCommitId":"178d22c0b8450abcc92ef52b3733aae89b05d1d9","coveredCommitId":"178d22c0b8450abcc92ef52b3733aae89b05d1d9","kind":"reviewed"} --> Reported progress can be lost after a temporary save failure and restart. Retrying unsaved progress would protect it. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> 1</strong></summary> <dl> <dd> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 warning</strong> | Check name | Status | Explanation | Resolution | | :---------------- | :----------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Warning](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg) | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 4 passed</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly identifies the main change: tracking `_UpdateTrophyProgress` UDS events for trophy progress in Octopath Traveler II. | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description directly explains the trophy progress changes, validation rules, persistence behavior, unlock handling, guest behavior, testing, and known verification limits. It matches the changeset… | <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> **Explanation** The description directly explains the trophy progress changes, validation rules, persistence behavior, unlock handling, guest behavior, testing, and known verification limits. It matches the changeset. </dd> </dl> </details> </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 12 functions across 4 files. **Resolution** Write docstrings for the functions missing them to satisfy the coverage threshold. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- announcements_start --> > [!TIP] > <details> > <summary><strong>🎯 Customize your risk assessments</strong></summary> > <dl> > <dd> > > Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using **Merge Risk Instructions** and **Security Risk Instructions** in your review settings. Security architecture risk assessments require the **Advanced plan or above**. > > </dd> > </dl> > </details> > > <details> > <summary><strong>✅ Automatic approvals, with your rules</strong></summary> > <dl> > <dd> > > Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable **Automatic approvals** in review settings, with overrides for teams or file paths. > > </dd> > </dl> > </details> <!-- announcements_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2104)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-04 09:04 UTC · original · reviewed

Nitpick comments: 1
tests/TrophySystemTests.cpp: 1

614-618: Trivial · Data Integrity & Integration · Quick win

Reload the trophy state after the target-reaching progress event.

TestReportedEventHle checks the completed award only in memory. It reads the save file only for the partial report at line 609. A regression that notifies the award but does not save it would still pass this test. Add a disk check after the target assertion.

Suggested fix
   Check(post(context, 2, 8) == 0 && progress() == 8 && data.unlocked &&
             state->unlocks.unlocked == std::set<int>{2} &&
             Libs::Graphics::notifications == base + 1,
         "reaching the target awards the trophy");
+  Check(Trophies::LoadUnlockData(state->path).unlocked == std::set<int>{2},
+        "reaching the target persists the trophy award");
Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 65fd1f61b9 and 1559ac78e7.

Files selected for processing: 4
  • src/common/trophies.cpp
  • src/common/trophies.h
  • src/libs/libTrophy.cpp
  • tests/TrophySystemTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-04 09:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2104#pullrequestreview-5765910751) · **reviewed** <!-- coderabbit-ai-generated:v1 --> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/brush-cleaning-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/brush-cleaning.svg" width="16" height="16" align="absmiddle" alt=""></picture> Nitpick comments: 1</summary><blockquote> <dl> <dd> <details> <summary>tests/TrophySystemTests.cpp: 1</summary><blockquote> <dl> <dd> `614-618`: **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/neutral-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Trivial** · **Data Integrity & Integration** · **Quick win** **Reload the trophy state after the target-reaching progress event.** `TestReportedEventHle` checks the completed award only in memory. It reads the save file only for the partial report at line 609. A regression that notifies the award but does not save it would still pass this test. Add a disk check after the target assertion. <details> <summary>Suggested fix</summary> <dl> <dd> ```diff Check(post(context, 2, 8) == 0 && progress() == 8 && data.unlocked && state->unlocks.unlocked == std::set<int>{2} && Libs::Graphics::notifications == base + 1, "reaching the target awards the trophy"); + Check(Trophies::LoadUnlockData(state->path).unlocked == std::set<int>{2}, + "reaching the target persists the trophy award"); ``` </dd> </dl> </details> <!-- cr-comment:v1:de94cec9385786ccc233bc3c --> </dd> </dl> </blockquote></details> </dd> </dl> </blockquote></details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/65fd1f61b9ed4604b9fe17f72ad4e1639d81df8b/.coderabbit.yaml>) - **Commit**: [65fd1f6](<https://github.com/KytyPS5/KytyPS5/commit/65fd1f61b9ed4604b9fe17f72ad4e1639d81df8b>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `56fee20a-42e3-4a70-991b-b1bbe5f6166d` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 65fd1f61b9ed4604b9fe17f72ad4e1639d81df8b and 1559ac78e755912284eec7c4a09ec4dd93849081. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</summary> <dl> <dd> * `src/common/trophies.cpp` * `src/common/trophies.h` * `src/libs/libTrophy.cpp` * `tests/TrophySystemTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=15306307-4553-474d-bd26-e9b38d36691e attempt=4166cca3-1e1b-4fde-b6cc-8159e1d52e44 batch=1/1 -->
@ -733,0 +745,4 @@
LibNpTrophy2::RecordTrophyUnlock(*state, *trophy_id, true);
} else if (changed &&
!LibNpTrophy2::Trophies::SaveUnlockData(state->path, state->unlocks)) {
LOGF("[Trophy] could not save trophy progress to %s\n",
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-04 12:19 UTC · original

Minor · Data Integrity & Integration · Quick win

Supported by static analysis

Script executed:

sed -n '710,770p' src/libs/libTrophy.cpp
sed -n '294,335p;479,500p' src/common/trophies.cpp

Repository: KytyPS5/KytyPS5

Length of output: 5135


Script executed:

rg -n -F -e 'SaveUnlockData' -e 'g_states' -e 'LoadTrophyState' -e 'ShutdownTrophy' -e 'TrophyState' -- src/ || test "$?" -eq 1
rg -n -i -e 'exit' -e 'shutdown' -e 'atexit' -e 'flush' -- src/libs/libTrophy.cpp src/common/trophies.cpp src/common/trophies.h || test "$?" -eq 1

Repository: KytyPS5/KytyPS5

Length of output: 3350


Keep reported progress that fails to save, so a later report or flush can persist it.

When SaveUnlockData fails in the _UpdateTrophyProgress branch, the handler logs the failure and returns success. The reported value remains only in g_states. The game receives no error. A repeated report of the same value sets changed to false, so the handler does not retry the save. No exit-time flush of trophy state exists in the inspected code. The file keeps the older progress value until a later save of the same state, such as an unlock, a stat change, or a higher progress report, writes the cached value. Progress reported during a temporary write failure can be lost after restart if no later save occurs.

Track the unsaved state in TrophyState. Set the flag when the progress save fails, and clear it after a successful save. On each progress report, retry the save when the flag is set, even if changed is false.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-04 12:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2104#discussion_r4467347327) <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Data Integrity & Integration** · **Quick win** <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/review-details-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/review-details.svg" width="16" height="16" align="absmiddle" alt=""></picture> Supported by static analysis</summary> <dl> <dd> Script executed: ```bash sed -n '710,770p' src/libs/libTrophy.cpp sed -n '294,335p;479,500p' src/common/trophies.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 5135 --- Script executed: ```bash rg -n -F -e 'SaveUnlockData' -e 'g_states' -e 'LoadTrophyState' -e 'ShutdownTrophy' -e 'TrophyState' -- src/ || test "$?" -eq 1 rg -n -i -e 'exit' -e 'shutdown' -e 'atexit' -e 'flush' -- src/libs/libTrophy.cpp src/common/trophies.cpp src/common/trophies.h || test "$?" -eq 1 ``` Repository: KytyPS5/KytyPS5 Length of output: 3350 --- </dd> </dl> </details> **Keep reported progress that fails to save, so a later report or flush can persist it.** When `SaveUnlockData` fails in the `_UpdateTrophyProgress` branch, the handler logs the failure and returns success. The reported value remains only in `g_states`. The game receives no error. A repeated report of the same value sets `changed` to false, so the handler does not retry the save. No exit-time flush of trophy state exists in the inspected code. The file keeps the older progress value until a later save of the same state, such as an unlock, a stat change, or a higher progress report, writes the cached value. Progress reported during a temporary write failure can be lost after restart if no later save occurs. Track the unsaved state in `TrophyState`. Set the flag when the progress save fails, and clear it after a successful save. On each progress report, retry the save when the flag is set, even if `changed` is false. <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:cdb4b22a03aaf1c9dd4326ef --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-04 12:19 UTC · original · reviewed

Actionable comments posted: 1

Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1559ac78e7 and 178d22c0b8450abcc92ef52b3733aae89b05d1d9.

Files selected for processing: 3
  • src/common/trophies.cpp
  • src/libs/libTrophy.cpp
  • tests/TrophySystemTests.cpp
Files skipped from review as they are similar to previous changes: 1
  • src/common/trophies.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-04 12:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2104#pullrequestreview-5768114697) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/65fd1f61b9ed4604b9fe17f72ad4e1639d81df8b/.coderabbit.yaml>) - **Commit**: [65fd1f6](<https://github.com/KytyPS5/KytyPS5/commit/65fd1f61b9ed4604b9fe17f72ad4e1639d81df8b>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `8f04fbb2-d240-49dc-ab37-18c310b933c6` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 1559ac78e755912284eec7c4a09ec4dd93849081 and 178d22c0b8450abcc92ef52b3733aae89b05d1d9. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 3</summary> <dl> <dd> * `src/common/trophies.cpp` * `src/libs/libTrophy.cpp` * `tests/TrophySystemTests.cpp` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-similar-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-similar.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files skipped from review as they are similar to previous changes: 1</summary> <dl> <dd> * src/common/trophies.cpp </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=52e52e49-6a03-48c1-a43b-3a2693e2f042 attempt=eabe595e-3ebc-4608-a827-3624cbd562ed batch=1/1 -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.