fix(storage): a portable launcher keeps game and DLSS 5 files in its own folder #412

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/portable-paths into main 2026-12-03 16:08:24 +00:00
Owner

Summary

A portable launcher still left files in the player's own folders. This is the launcher's half of the fix:

  • It names its data folder to every builder command in LONGSHOT_PORTABLE_DATA, so a newer game version keeps its user
    folder and the Windows sandbox's record there, also when the data folder was moved in Settings.
  • DLSS 5 files added in a portable launcher go to its own ngx folder instead of %LOCALAPPDATA%\Longshot\ngx, and
    Play points RX_VK_DLSS_DIR at it. Every game version already looks there first. A RX_VK_DLSS_DIR of your own wins.
  • docs/paths.md lists the installed and portable places, and what is still written outside a portable folder.

Installed launchers behave as before. DLSS 5 files added earlier stay in %LOCALAPPDATA%\Longshot\ngx, where games still
find them; the portable launcher's Settings does not list those as its own.

Game side: MagicBeanDev/Longshot#3090. See #266.

Testing

Tested: Linux: cargo fmt, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace (all pass;
the portable test now checks LONGSHOT_PORTABLE_DATA).

Still to test:

  • Windows, portable: add the DLSS 5 files in Settings, expecting them in Longshot\data\ngx and DLSS 5 working in the game
    (by hand).
  • Windows, installed: Add and Remove still use %LOCALAPPDATA%\Longshot\ngx (by hand).

Not tested on Windows: the DLSS 5 folder code is Windows-only and was not compiled for Windows here.

#266 reports an NFC folder in AppData on opening launcher 1.2.0. This change does not claim to fix that report: 1.2.0 was not
audited. A likely related cause (an empty nfc folder in the game's user folder) is fixed on the game side.

🤖 Generated with Claude Code

## Summary A **portable** launcher still left files in the player's own folders. This is the launcher's half of the fix: - It names its data folder to every builder command in `LONGSHOT_PORTABLE_DATA`, so a newer game version keeps its user folder and the Windows sandbox's record there, also when the data folder was moved in Settings. - **DLSS 5 files** added in a portable launcher go to its own `ngx` folder instead of `%LOCALAPPDATA%\Longshot\ngx`, and Play points `RX_VK_DLSS_DIR` at it. Every game version already looks there first. A `RX_VK_DLSS_DIR` of your own wins. - `docs/paths.md` lists the installed and portable places, and what is still written outside a portable folder. Installed launchers behave as before. DLSS 5 files added earlier stay in `%LOCALAPPDATA%\Longshot\ngx`, where games still find them; the portable launcher's Settings does not list those as its own. Game side: https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3090. See #266. ## Testing **Tested:** Linux: `cargo fmt`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace` (all pass; the portable test now checks `LONGSHOT_PORTABLE_DATA`). **Still to test:** - Windows, portable: add the DLSS 5 files in Settings, expecting them in `Longshot\data\ngx` and DLSS 5 working in the game (by hand). - Windows, installed: Add and Remove still use `%LOCALAPPDATA%\Longshot\ngx` (by hand). Not tested on Windows: the DLSS 5 folder code is Windows-only and was not compiled for Windows here. #266 reports an NFC folder in AppData on opening launcher 1.2.0. This change does not claim to fix that report: 1.2.0 was not audited. A likely related cause (an empty `nfc` folder in the game's user folder) is fixed on the game side. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(storage): a portable launcher keeps game and DLSS 5 files in its own folder
Some checks failed
CI / What the change needs (pull_request) Successful in 4s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 10s
PR title / Conventional Commit title (pull_request) Successful in 6s
CI / Rust formatting, lint and tests (pull_request) Successful in 16m4s
CI / Release packages and stable upgrades (pull_request) Failing after 34m26s
ea48cc9a5b
Assisted-by: Claude Code
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
Owner

Linked the game's half.

Linked the game's half.
HumanBean changed title from WIP: fix(storage): a portable launcher keeps game and DLSS 5 files in its own folder to fix(storage): a portable launcher keeps game and DLSS 5 files in its own folder 2026-12-03 16:08:21 +00:00
HumanBean deleted branch fix/portable-paths 2026-12-03 16:08:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
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.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!412
No description provided.