Files
drop/desktop/src-tauri/games
Nate Pelzel 9f3d390f0e Fix delta updates deleting nested files on Windows (#486)
GameDownloadAgent::run() prunes the install directory by comparing
locally-scanned relative paths against the manifest's file_list keys.
file_list is always written with `/` separators (see droplet's
path_backend.rs), regardless of which OS produced the manifest, but
Path::strip_prefix().to_string_lossy() on Windows yields `\`-separated
strings. Every nested file therefore fails the exact-string HashMap
lookup and gets deleted on every download/update, while flat root
files (no separator to disagree on) happen to survive. This is most
visible on Unity games, where nearly all content lives under a deeply
nested *_Data folder.

Confirmed against a live Drop server: 401/407 of a real game's
file_list entries contain `/`, with the remaining 6 being
separator-less root files, matching exactly which files survive vs.
get pruned.
2026-09-01 13:20:32 +10:00
..
2026-04-03 01:25:10 +00:00