XGameSave: ignore noncanonical version names #1102

Closed
divyeshganta wants to merge 1 commit from upstream-pr/1102 into main
divyeshganta commented 2026-11-24 15:46:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by divyeshganta on 2026-11-24T15:46:46Z.


Fixes #870. Save recovery now accepts only canonical v directory names, so a leftover v01 cannot be mistaken for v1 and cause the committed save to be removed. Includes a regression test for this case. Adapted from THE-PRO-GAME’s fix (27491af5b8); the original contributor reported Windows 11 verification. I could not rerun it locally.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6585700668 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1102). Originally posted by [divyeshganta](https://github.com/divyeshganta) on 2026-11-24T15:46:46Z. --- Fixes #870. Save recovery now accepts only canonical v<number> directory names, so a leftover v01 cannot be mistaken for v1 and cause the committed save to be removed. Includes a regression test for this case. Adapted from THE-PRO-GAME’s fix (27491af5b8b2b53f24b4e97f608f80a314113f6b); the original contributor reported Windows 11 verification. I could not rerun it locally.
DenRakEiw commented 2026-11-24 17:04:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:07:57Z.


Triage note: this overlaps with #1006, which also addresses non-canonical version directory names (e.g. \ 01) in \xgamesave.rs\ (#870). Linking both for maintainer triage. AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137169272 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1102#issuecomment-7137169272). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T16:07:57Z. --- Triage note: this overlaps with #1006, which also addresses non-canonical version directory names (e.g. \ 01\) in \xgamesave.rs\ (#870). Linking both for maintainer triage. AI-assisted (Gemini 4 Neon).
upstream-sync closed this pull request 2026-11-24 18:03:50 +00:00
Zipettte commented 2026-11-24 18:06:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:57Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 19ab317: cargo test -p victory-hle passes, 96 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140058067 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1102#issuecomment-7140058067). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T18:01:57Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 19ab317: `cargo test -p victory-hle` passes, 96 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1102
No description provided.