Darner: settings open as soon as the runner is installed #297

Open
github-bot wants to merge 1 commit from github-bot/gh-297 into main AGit
Owner

@⁠abhishxkthakur on GitHub · 2026-12-06 10:32 UTC · original
abhishxkthakur:fix/darner-settings-unlock → main · +28 −13 · 2 files · 1 commits · open

Problem

On Launch > Darner, the DLSS settings card stays locked ("install the Darner runner and run the game once. The settings file is created automatically when it runs") until darner-settings.txt exists.

darner.exe does not create that file on a run. It writes it only when something is saved in its F1 menu (settings_file() in Darner's crates/darner-gpu/src/host/menu.rs). A player who never changes a setting in the game therefore never gets the card unlocked, and cannot reach Get NVIDIA DLSS files either, since that button is inside the locked section.

Seen on Darner v2026.12.04.01 after three play sessions: no darner-settings.txt under %LOCALAPPDATA%\darner, card still locked.

Change

  • The card is open when darner.exe is installed or the settings file exists. Save settings already creates the file when it is missing, and darner.exe reads it at every start, so saving before the first run works.
  • The page's 2-second timer also refreshes the lock when darner.exe is installed or removed while no file exists (before, it only reacted to the file).
  • Open darner-settings.txt creates the file with its header line when it is missing, instead of showing "Start Darner once: the game creates it".
  • "Loaded from ..." is shown only when a file was actually read.

No user-facing string is added, so no translation changes. Two things are left as they are and could be tidied separately:

  • The lock text still says "and run the game once", but it is now shown only when Darner is not installed.
  • The message darner-settings.txt does not exist yet. Start Darner once: the game creates it. is no longer used; its entries remain in the Localizer.*.cs files.

Testing

  • dotnet build -c Release (SDK 8.0.428): 0 errors.
  • python tests/check_persian_localization.py: passes.
  • Not exercised in the running app: I have not clicked through the page with this build.

🤖 Generated with Claude Code

**@⁠abhishxkthakur** on GitHub · 2026-12-06 10:32 UTC · [original](https://github.com/isaac-btw/AmericasLauncher/pull/297) `abhishxkthakur:fix/darner-settings-unlock` → `main` · +28 −13 · 2 files · 1 commits · open ## Problem On **Launch > Darner**, the DLSS settings card stays locked ("install the Darner runner and run the game once. The settings file is created automatically when it runs") until `darner-settings.txt` exists. `darner.exe` does not create that file on a run. It writes it only when something is saved in its F1 menu (`settings_file()` in Darner's `crates/darner-gpu/src/host/menu.rs`). A player who never changes a setting in the game therefore never gets the card unlocked, and cannot reach **Get NVIDIA DLSS files** either, since that button is inside the locked section. Seen on Darner v2026.12.04.01 after three play sessions: no `darner-settings.txt` under `%LOCALAPPDATA%\darner`, card still locked. ## Change - The card is open when `darner.exe` is installed **or** the settings file exists. **Save settings** already creates the file when it is missing, and `darner.exe` reads it at every start, so saving before the first run works. - The page's 2-second timer also refreshes the lock when `darner.exe` is installed or removed while no file exists (before, it only reacted to the file). - **Open darner-settings.txt** creates the file with its header line when it is missing, instead of showing "Start Darner once: the game creates it". - "Loaded from ..." is shown only when a file was actually read. No user-facing string is added, so no translation changes. Two things are left as they are and could be tidied separately: - The lock text still says "and run the game once", but it is now shown only when Darner is not installed. - The message `darner-settings.txt does not exist yet. Start Darner once: the game creates it.` is no longer used; its entries remain in the `Localizer.*.cs` files. ## Testing - `dotnet build -c Release` (SDK 8.0.428): 0 errors. - `python tests/check_persian_localization.py`: passes. - **Not exercised in the running app**: I have not clicked through the page with this build. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The DLSS settings card stayed locked until darner-settings.txt existed, on
the assumption that the game's first run creates it. darner.exe writes the
file only when something is saved in its F1 menu, so a player who never
changed a setting in the game could never change one here, and could not
reach Get NVIDIA DLSS files either.

- The card is open when darner.exe is installed or the file exists. Save
  settings already creates the file, and darner.exe reads it at every start.
- The page's timer also refreshes the lock when darner.exe is installed or
  removed while no file exists.
- Open darner-settings.txt creates the file (its header line) when it is
  missing, instead of telling the player to start the game once.
- "Loaded from ..." is shown only when a file was read.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 10:36:09 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/297/head:github-bot/gh-297'
git switch 'github-bot/gh-297'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-297'
git switch 'github-bot/gh-297'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-297'
git switch 'github-bot/gh-297'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-297'
git switch 'main'
git merge --squash 'github-bot/gh-297'
git switch 'main'
git merge --ff-only 'github-bot/gh-297'
git switch 'main'
git merge 'github-bot/gh-297'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.