Save sharing: a zip's Saves and Storage import in any letters #584
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T01:19:02Z.
The 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 were the indirect tests that then failed onmaintoo;mainhas fixed them since (9b712a6).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.