diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 00:58:29 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 00:59:25 +0100 |
| commit | 33869133e58ef02b2ced178863faf5254793b1cb (patch) | |
| tree | 5c37ce2f7376add7c44936638963d25e7ebfc83b /tests/test_run_gpu_tests_python_assembler.py | |
| parent | 0bbf39b2cd9cb754a6c065b50bbccc608a4c1d91 (diff) | |
launcher: Import saves puts saves from another PC, an older install or a kept copy back in this PC's saves folder
The Saves page gets an "Import saves ..." button (and a one-line hint) for saves this runtime wrote elsewhere. The
source is a ZIP or a folder, chosen in a small dialog with a button for each: a launcher backup, a ZIP or folder
holding saves at any level (7952987A\saves, the user folder, a configuration folder, one <Name>~<hash> container),
or a whole old data folder. Every <Name>~<16 hex> folder with a v<N> whose manifest reads is imported; the rest is
ignored and the skipped ones are counted.
Each container goes to saves\0009000000000001\<configuration>\<folder>: the user folder is the runtime's constant
xuser::XUID (a test reads it from xuser.rs); the configuration is the one the source's path names, else this PC's
only one. The runtime names that folder after the id the title passes to XGameSaveInitializeProvider, not after a
constant, so with neither the launcher asks the player to start the game once and invents no name. A list (name,
newest version, date, new or replaced) comes first; a replacement backs up all the current saves (before-import).
Containers are staged in import.new and moved in with one rename; a ZIP's entries get zip_containers' checks.
Refused while the game runs, like the other save actions. "Restore ..." becomes "Restore a backup ...".
Tests: every source shape, configuration from the path / this PC / missing, replacement after a backup, path
traversal, non-save folders, this PC's own saves. Translations in fr, es, pt and de; docs/launcher.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions