Save sharing: a zip's Saves and Storage import in any letters #584
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!584
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-584"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kibagami-nc on GitHub · 2026-11-28 01:19 UTC · original
kibagami-nc:fix/save-import-part-names-any-case→main· +33 −2 · 1 files · 1 commits · openThe problem
place(crates/victory-gpu/src/save_share.rs) finds a save's parts in a zip whatever their case (p.eq_ignore_ascii_case(k)), but it kept the zip's own spelling in the path it gave back.unzipthen checks for the import'ssavespart by its exact name:Path::starts_withcompares components as they are written.So a zip whose folder is
Saves(orSAVES) was refused with "no save in that zip (no saves folder)". A player who renames or zips the folders by hand gets this, as does any zip tool that changes case.The change
placegives the part asPARTSnames it (saves,storage), followed by the rest of the entry's path. The import then lands in the folders as the game names them.Tests
save_share::tests::a_zip_with_its_parts_named_in_capitals_imports: a zip ofmy save/Saves/...andmy save/STORAGE/....savesandstorage.NotFound: "no save in that zip (no saves folder)", and passes after it.save_sharetests pass.cargo test -p victory-gpu --locked --lib: 442 passed. The 2 failures are the indirect tests that fail onmaintoo, fixed in #578.cargo clippy -p victory-gpu --all-targets -- -D warnings: nothing insave_share.rs. It still stops on the dead-code lintsmainhas.No game files, dumps or extracted data are included.
place() finds a save's parts in a zip without regard to case (Saves, STORAGE), but kept the zip's own spelling, and unzip then looked for the import's saves part by its exact name (Path::starts_with("saves")). A zip whose folder is "Saves" was refused: "no save in that zip (no saves folder)". The part is now given as PARTS names it, so the import lands in saves and storage as the game names them. Test: a_zip_with_its_parts_named_in_capitals_imports (my save/Saves/..., my save/STORAGE/...). It fails before the change with that error.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.