[pr-feature][startup] Launcher window before the game, with F1's settings page #302

Open
starrockanonigtavi wants to merge 9 commits from starrockanonigtavi/Darner:launcher into main
Contributor

Contributor role (optional)

  • Fluxer ID: 1576513486756786176

What it changes

  • The problem on main: read from the code only. darner play goes straight from the console to the game. The settings can only be changed in game (F1) or in darner-settings.txt, and most changes then need a restart of the game.

darner play now shows a window before the settings become switches (crates/darner-gpu/src/host/launcher.rs, called from play::prepare):

  • one line with what the next start uses: preset, resolution, DLSS, frame generation, FPS cap, ray tracing, window/fullscreen;
  • PLAY (Enter, or A / Start on a pad);
  • the gear: F1's own settings page drawn in the window (menu.rs's render_hits, hit_test, handle_hover, handle_left_click, scroll), with mouse, keyboard and pads. It has a back arrow (a Save / Don't Save question when something changed) and an X;
  • Preload shaders: saves, then darner play runs its existing preload window (preload_ui);
  • Check for updates: one request to https://git.gtahub.st/api/v1/repos/TrustNo1/Darner/releases/latest with curl.exe (5 s limit), only when clicked. It shares the code of the start's own update check;
  • Show at start: writes DARNER_MENU_LAUNCHER=0 to darner-settings.txt. The same row is in F1 (TOOLS > LAUNCHER AT START), and darner play --launcher shows the window anyway;
  • a banner: empty (a gradient and "Click to add an image") until the player picks a picture of their own. The game's art is not used (see #228).
    • A picked picture is copied beside the settings file (launcher-banner.* in %LOCALAPPDATA%\darner or DARNER_HOME) and decoded with WIC. Edit image moves it (drag) and zooms it (wheel), and the framing is kept beside it.
    • No new image is in the repository. The banner's right side shows Darner's logo (docs/darner-logo.png, the owner's picture already listed in docs/asset-policy.md, built in with include_bytes! and drawn with its transparency), with the build's version left of it. The PLAY letters are outline polygons (launcher_shapes.rs).

Nothing restarts in the launcher: the game has not started yet. F1's page in the window says so:

  • Buttons: SAVE AND PLAY, BACK, SAVE, PRELOAD SHADERS and CLEAR SHADER CACHE, without "(RESTARTS THE GAME)" or "for next start". SAVE AND CLOSE GAME is not shown.
  • Texts: the help and notes say "applies when you play", not "applies at the next start" or "restart needed". The "(NOW: ...)" of ray tracing, the LIVE marks and the restart-required notes are left out.
  • How the texts are found: these are new launcher.menu.* keys, each replacing the menu.* key of the same name while the window is open (said_where in menu.rs). A catalog that translates the menu line but not the launcher's shows the menu line in its own language, not English in the middle of it.
  • Docs: the README tells translators about the launcher.menu.* keys. A test checks that each one replaces an existing menu key.
  • CLEAR SHADER CACHE clears the cache from the window (play::clear_shaders_in, through LauncherSetup::clear_shaders) and stays.
  • IMPORT SAVE stages the save and stays; PLAY starts with it.
  • INTERFACE LANGUAGE changes the language at once (i18n::select), for the window and for the game started from it in the same process. Going back without saving puts the saved language back.
  • Saving writes the launcher's choices in full. It writes every DARNER_MENU_* row and every row the file already holds, changed or not (Menu::pinned). So what the window showed is what starts, and later defaults (auto-detect, a newer build's play defaults) do not override it.

The console window (new F1 row TOOLS > CONSOLE WINDOW, DARNER_SHOW_CONSOLE):

  • Hidden by default when it is the start's own (a double-clicked darner.exe, or F1's restart). Before, it was minimised to the taskbar when the game started.
  • Shown again when needed: for each console question (the DLSS / FSR / MFG download offers, the settings question) and for an error (restore_console).
  • Batch files: DARNER_OWN_CONSOLE=1 lets a batch file say its console is only for this start. The README row says to end such a file without a plain pause, or the hidden window waits.
  • F1's restarts, with the console hidden, start the new console with the classic conhost.exe, hidden. Its Read-Host after a failed start shows, because the failing start restores the window.

Pads in the window: XInput, and PlayStation pads over HID (gameinput::launcher_pad_buttons, from the same reader the game uses) unless F1's DUALSENSE is off.

Mouse picking in a long list: F1's lists centre on the row picked, so in the window, as in game, the list moves under the mouse. #297 fixes that for every F1 list; the window draws F1's page, so it gets the fix with it. It is not in this PR.

How it fits the code:

  • It is shown at every start unless the file hides it. It is not shown on F1's restarts (Then::switch now sets DARNER_MENU_RESTARTED=1), on F1's preload or clear-cache restarts, with --preload, or when standard input is not a terminal (an unattended run such as scripts/bench.ps1; --launcher still shows it).
  • The choice comes back in-process as LauncherChoice (Play, Quit, Preload). Quit returns None from prepare, and nothing starts.
  • The window reads the settings as the start will set them (play::settings over the file, read again after RESET ALL), not from this process's environment. It saves to the same file with merged_settings.
  • In the launcher, changes are held until PLAY, SAVE or the way back. They are not saved on each change as in game. apply_live does nothing there.
  • Menu::frame's per-key body moved unchanged into Menu::press, so the game and the launcher use the same key handling. Most of menu.rs's diff is that move (reindented).
  • The window is per-monitor DPI aware on its own thread only (SetThreadDpiAwarenessContext), so the process-wide call in darner-hle's lifecycle.rs still decides the game window's awareness.
  • New windows features in darner-gpu: Win32_Graphics_Imaging, Win32_System_Com, Win32_UI_Controls_Dialogs. New windows-sys feature: Win32_UI_Input_XboxController. Cargo.lock is unchanged.
  • New text is in locales/en.json only. Other catalogs fall back as described above. The Spanish lines are ready for #196 once both are in.

Ported from the launcher I wrote for the VIctory fork (victory launcher, a separate process started by play-nvidia.ps1), with that fork's later fixes: no restart wording, the launcher's values win, the console hidden with a menu row, PlayStation pads, CLEAR staying in the window. It is redrawn with font.rs's canvas and the F1 theme (PINK to CYAN).

How it was tested

  • Tested revision: 2ebf9b3 (branch launcher, based on main f3840d7) for the commands below; e7f4787 in game.
    • The game was played with a build of e7f4787 merged with #196's branch plus Spanish lines for the new keys (a local test branch, not part of this PR), so the window was seen in Spanish. That build still had the mouse fix now left to #297.
    • The last two commits (the banner starts empty, with no game splash; the mouse fix taken out) were built and their tests run, not played.
    • Later commits, not played: 3e93749 (the launcher skipped when standard input is not a terminal, from review): clippy for darner clean, play tests 61 passed. 0eba370 (Darner's logo in place of "PC"): clippy for darner-gpu clean, launcher tests 7 passed, the preview drawn and looked at.
  • Commands and results (on e7f4787 and on 2ebf9b3 where a count is given for it):
    • cargo clippy --locked -p darner-core -p darner-gpu -p darner-hle -p darner --all-targets -- -D warnings: clean.
    • cargo test --locked -p darner-gpu --lib host::menu: 57 passed, 0 failed, 2 ignored on 2ebf9b3 (59 on e7f4787, with the mouse fix). This includes the new test that each launcher.menu.* key replaces a menu key.
    • cargo test --locked -p darner-gpu --lib launcher: 7 passed, 0 failed (after the splash was removed with its test). They cover framing read back and clamping, the show box writing only its row, actions ending the window, and changes held until a save.
    • cargo test --locked -p darner-gpu --lib host::: 468 passed, 0 failed, 35 ignored. In two earlier runs, one refresh_tests test failed each time (chunked_nothing_new_with_matches_individual, then refresh_front_zero_arc_matches_and_runs_due). Each passed when run alone and again in the full run; neither touches this change. #224 is about these tests sharing state.
    • cargo test --locked -p darner --bin darner play: 61 passed, 0 failed.
    • cargo test --locked -p darner-core: 31 passed, 0 failed.
    • cargo build --release --locked -p darner: built (5 min 04 s), with one linker_messages warning that main's build gives too.
    • DARNER_LAUNCHER_PREVIEW=<path> cargo test -p darner-gpu --lib launcher::tests::preview: the first page, the settings page and the question were drawn to BMP and looked at.
  • Changes a default: yes, for everyone.
    • darner play now shows a window first, so starting the game takes one extra click (or Enter) until "Show at start" is unticked.
    • The console window is hidden instead of minimised.
  • A/B result: not applicable (no speed or rendering change).
  • Gates run on that revision: none of the three in full (only the crate-level runs above).
  • Gameplay: the release build above was started with darner play from a batch file with DARNER_OWN_CONSOLE=1, on Windows 11. Overall, everything worked: the launcher, its settings page and the game start from it, plus the points fixed in the last round (no restart wording in Spanish, the console hidden, and the list still under the mouse, a fix now left to #297). These were not each checked and written down one by one.
  • Shader wave sizes tested, when relevant: not relevant.
  • Hardware dependence: likely general (Windows GDI, WIC, XInput, HID).
  • Coverage gaps:
    • The full workspace gates were not run.
    • Not checked one by one: a PlayStation pad in the window; IMPORT SAVE and CLEAR SHADER CACHE from the window; F1's restart with the console hidden; and the console hidden when Windows Terminal is the default terminal (console_window hides Terminal's window then; not tried).
    • After the window has read a PlayStation pad, the HID scan thread keeps running in the game process, even if the game's own input does not use it.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs:
    • #297 (F1 lists stay put under the mouse) fixes the list moving under the mouse in this window too. Both touch menu.rs, so one may need a small rebase after the other.
    • No other launcher PR is open. Yorivel's launcher PR on CodeFloe (CodeFloe #276) is gone (404).
    • #228 (closed, not merged) wanted the game's splash screen out of the preload window. For the same reason this window does not use it: its banner shows only a picture the player picks.
    • #278 moves check_for_update after the settings file is read. This PR splits its request into latest_release, so the two will conflict in play.rs.
    • #265 changes the console questions in play.rs; this PR adds restore_console() before each question.
    • #276 (DualSense native features) touches gameinput's PlayStation code; this PR adds launcher_pad_buttons there.
    • #196 (Spanish catalog), #217 (Portuguese catalog): the new launcher.* keys are English only here.
    • #154 (F1 new look), #91 (F1 menu redesign): this reuses the F1 page and touches menu.rs.
    • #241 (settings precedence docs): the launcher writes its choices to the file in full.
    • #167 / #166, startup.
    • xrobau's startup rework on his branch rename-build-darner touches play.rs/main.rs and may conflict.
  • Replaces or overlaps: none found

🤖 Generated with Claude Code

## Contributor role (optional) - Fluxer ID: 1576513486756786176 ## What it changes - The problem on main: read from the code only. `darner play` goes straight from the console to the game. The settings can only be changed in game (F1) or in `darner-settings.txt`, and most changes then need a restart of the game. `darner play` now shows a window before the settings become switches (`crates/darner-gpu/src/host/launcher.rs`, called from `play::prepare`): - one line with what the next start uses: preset, resolution, DLSS, frame generation, FPS cap, ray tracing, window/fullscreen; - **PLAY** (Enter, or A / Start on a pad); - the gear: F1's own settings page drawn in the window (`menu.rs`'s `render_hits`, `hit_test`, `handle_hover`, `handle_left_click`, `scroll`), with mouse, keyboard and pads. It has a back arrow (a Save / Don't Save question when something changed) and an X; - **Preload shaders**: saves, then `darner play` runs its existing preload window (`preload_ui`); - **Check for updates**: one request to `https://git.gtahub.st/api/v1/repos/TrustNo1/Darner/releases/latest` with curl.exe (5 s limit), only when clicked. It shares the code of the start's own update check; - **Show at start**: writes `DARNER_MENU_LAUNCHER=0` to `darner-settings.txt`. The same row is in F1 (TOOLS > LAUNCHER AT START), and `darner play --launcher` shows the window anyway; - a banner: empty (a gradient and "Click to add an image") until the player picks a picture of their own. The game's art is not used (see #228). - A picked picture is copied beside the settings file (`launcher-banner.*` in `%LOCALAPPDATA%\darner` or `DARNER_HOME`) and decoded with WIC. Edit image moves it (drag) and zooms it (wheel), and the framing is kept beside it. - No new image is in the repository. The banner's right side shows Darner's logo (`docs/darner-logo.png`, the owner's picture already listed in `docs/asset-policy.md`, built in with `include_bytes!` and drawn with its transparency), with the build's version left of it. The PLAY letters are outline polygons (`launcher_shapes.rs`). Nothing restarts in the launcher: the game has not started yet. F1's page in the window says so: - **Buttons:** SAVE AND PLAY, BACK, SAVE, PRELOAD SHADERS and CLEAR SHADER CACHE, without "(RESTARTS THE GAME)" or "for next start". SAVE AND CLOSE GAME is not shown. - **Texts:** the help and notes say "applies when you play", not "applies at the next start" or "restart needed". The "(NOW: ...)" of ray tracing, the LIVE marks and the restart-required notes are left out. - **How the texts are found:** these are new `launcher.menu.*` keys, each replacing the `menu.*` key of the same name while the window is open (`said_where` in `menu.rs`). A catalog that translates the menu line but not the launcher's shows the menu line in its own language, not English in the middle of it. - **Docs:** the README tells translators about the `launcher.menu.*` keys. A test checks that each one replaces an existing menu key. - **CLEAR SHADER CACHE** clears the cache from the window (`play::clear_shaders_in`, through `LauncherSetup::clear_shaders`) and stays. - **IMPORT SAVE** stages the save and stays; PLAY starts with it. - **INTERFACE LANGUAGE** changes the language at once (`i18n::select`), for the window and for the game started from it in the same process. Going back without saving puts the saved language back. - **Saving writes the launcher's choices in full.** It writes every `DARNER_MENU_*` row and every row the file already holds, changed or not (`Menu::pinned`). So what the window showed is what starts, and later defaults (auto-detect, a newer build's play defaults) do not override it. The console window (new F1 row TOOLS > CONSOLE WINDOW, `DARNER_SHOW_CONSOLE`): - **Hidden by default** when it is the start's own (a double-clicked darner.exe, or F1's restart). Before, it was minimised to the taskbar when the game started. - **Shown again when needed:** for each console question (the DLSS / FSR / MFG download offers, the settings question) and for an error (`restore_console`). - **Batch files:** `DARNER_OWN_CONSOLE=1` lets a batch file say its console is only for this start. The README row says to end such a file without a plain `pause`, or the hidden window waits. - **F1's restarts**, with the console hidden, start the new console with the classic `conhost.exe`, hidden. Its Read-Host after a failed start shows, because the failing start restores the window. Pads in the window: XInput, and PlayStation pads over HID (`gameinput::launcher_pad_buttons`, from the same reader the game uses) unless F1's DUALSENSE is off. Mouse picking in a long list: F1's lists centre on the row picked, so in the window, as in game, the list moves under the mouse. #297 fixes that for every F1 list; the window draws F1's page, so it gets the fix with it. It is not in this PR. How it fits the code: - It is shown at every start unless the file hides it. It is not shown on F1's restarts (`Then::switch` now sets `DARNER_MENU_RESTARTED=1`), on F1's preload or clear-cache restarts, with `--preload`, or when standard input is not a terminal (an unattended run such as `scripts/bench.ps1`; `--launcher` still shows it). - The choice comes back in-process as `LauncherChoice` (Play, Quit, Preload). Quit returns `None` from `prepare`, and nothing starts. - The window reads the settings as the start will set them (`play::settings` over the file, read again after RESET ALL), not from this process's environment. It saves to the same file with `merged_settings`. - In the launcher, changes are held until PLAY, SAVE or the way back. They are not saved on each change as in game. `apply_live` does nothing there. - `Menu::frame`'s per-key body moved unchanged into `Menu::press`, so the game and the launcher use the same key handling. Most of `menu.rs`'s diff is that move (reindented). - The window is per-monitor DPI aware on its own thread only (`SetThreadDpiAwarenessContext`), so the process-wide call in `darner-hle`'s `lifecycle.rs` still decides the game window's awareness. - New `windows` features in darner-gpu: `Win32_Graphics_Imaging`, `Win32_System_Com`, `Win32_UI_Controls_Dialogs`. New windows-sys feature: `Win32_UI_Input_XboxController`. `Cargo.lock` is unchanged. - New text is in `locales/en.json` only. Other catalogs fall back as described above. The Spanish lines are ready for #196 once both are in. Ported from the launcher I wrote for the VIctory fork (`victory launcher`, a separate process started by `play-nvidia.ps1`), with that fork's later fixes: no restart wording, the launcher's values win, the console hidden with a menu row, PlayStation pads, CLEAR staying in the window. It is redrawn with `font.rs`'s canvas and the F1 theme (PINK to CYAN). ## How it was tested - Tested revision: 2ebf9b3 (branch `launcher`, based on main f3840d7) for the commands below; e7f4787 in game. - The game was played with a build of e7f4787 merged with #196's branch plus Spanish lines for the new keys (a local test branch, not part of this PR), so the window was seen in Spanish. That build still had the mouse fix now left to #297. - The last two commits (the banner starts empty, with no game splash; the mouse fix taken out) were built and their tests run, not played. - Later commits, not played: 3e93749 (the launcher skipped when standard input is not a terminal, from review): clippy for `darner` clean, `play` tests 61 passed. 0eba370 (Darner's logo in place of "PC"): clippy for `darner-gpu` clean, `launcher` tests 7 passed, the preview drawn and looked at. - Commands and results (on e7f4787 and on 2ebf9b3 where a count is given for it): - `cargo clippy --locked -p darner-core -p darner-gpu -p darner-hle -p darner --all-targets -- -D warnings`: clean. - `cargo test --locked -p darner-gpu --lib host::menu`: 57 passed, 0 failed, 2 ignored on 2ebf9b3 (59 on e7f4787, with the mouse fix). This includes the new test that each `launcher.menu.*` key replaces a menu key. - `cargo test --locked -p darner-gpu --lib launcher`: 7 passed, 0 failed (after the splash was removed with its test). They cover framing read back and clamping, the show box writing only its row, actions ending the window, and changes held until a save. - `cargo test --locked -p darner-gpu --lib host::`: 468 passed, 0 failed, 35 ignored. In two earlier runs, one `refresh_tests` test failed each time (`chunked_nothing_new_with_matches_individual`, then `refresh_front_zero_arc_matches_and_runs_due`). Each passed when run alone and again in the full run; neither touches this change. #224 is about these tests sharing state. - `cargo test --locked -p darner --bin darner play`: 61 passed, 0 failed. - `cargo test --locked -p darner-core`: 31 passed, 0 failed. - `cargo build --release --locked -p darner`: built (5 min 04 s), with one `linker_messages` warning that main's build gives too. - `DARNER_LAUNCHER_PREVIEW=<path> cargo test -p darner-gpu --lib launcher::tests::preview`: the first page, the settings page and the question were drawn to BMP and looked at. - Changes a default: yes, for everyone. - `darner play` now shows a window first, so starting the game takes one extra click (or Enter) until "Show at start" is unticked. - The console window is hidden instead of minimised. - A/B result: not applicable (no speed or rendering change). - Gates run on that revision: none of the three in full (only the crate-level runs above). - Gameplay: the release build above was started with `darner play` from a batch file with `DARNER_OWN_CONSOLE=1`, on Windows 11. Overall, everything worked: the launcher, its settings page and the game start from it, plus the points fixed in the last round (no restart wording in Spanish, the console hidden, and the list still under the mouse, a fix now left to #297). These were not each checked and written down one by one. - Shader wave sizes tested, when relevant: not relevant. - Hardware dependence: likely general (Windows GDI, WIC, XInput, HID). - Coverage gaps: - The full workspace gates were not run. - Not checked one by one: a PlayStation pad in the window; IMPORT SAVE and CLEAR SHADER CACHE from the window; F1's restart with the console hidden; and the console hidden when Windows Terminal is the default terminal (`console_window` hides Terminal's window then; not tried). - After the window has read a PlayStation pad, the HID scan thread keeps running in the game process, even if the game's own input does not use it. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: - #297 (F1 lists stay put under the mouse) fixes the list moving under the mouse in this window too. Both touch `menu.rs`, so one may need a small rebase after the other. - No other launcher PR is open. Yorivel's launcher PR on CodeFloe (CodeFloe #276) is gone (404). - #228 (closed, not merged) wanted the game's splash screen out of the preload window. For the same reason this window does not use it: its banner shows only a picture the player picks. - #278 moves `check_for_update` after the settings file is read. This PR splits its request into `latest_release`, so the two will conflict in `play.rs`. - #265 changes the console questions in `play.rs`; this PR adds `restore_console()` before each question. - #276 (DualSense native features) touches `gameinput`'s PlayStation code; this PR adds `launcher_pad_buttons` there. - #196 (Spanish catalog), #217 (Portuguese catalog): the new `launcher.*` keys are English only here. - #154 (F1 new look), #91 (F1 menu redesign): this reuses the F1 page and touches `menu.rs`. - #241 (settings precedence docs): the launcher writes its choices to the file in full. - #167 / #166, startup. - xrobau's startup rework on his branch `rename-build-darner` touches `play.rs`/`main.rs` and may conflict. - Replaces or overlaps: none found 🤖 Generated with [Claude Code](https://claude.com/claude-code)
darner play shows a window before the settings become switches: what the
next start uses, PLAY, F1's settings page drawn in the window (mouse,
keyboard, XInput pad), Preload shaders (play's own preload window), a
check for a newer release (the Forgejo API's latest release), and a banner
with the game's Xbox splash screen or a picture the player picks (kept
beside the settings file, decoded by WIC; drag and wheel frame it).

Shown at every start; "Show at start" or F1's new LAUNCHER AT START row
write DARNER_MENU_LAUNCHER=0, and --launcher shows it anyway. F1's
restarts set DARNER_MENU_RESTARTED=1 and skip it. The window is DPI aware
on its own thread only, so lifecycle.rs still sets the process's.

Changes in the launcher are held until PLAY or the way back (a Save /
Don't Save question); the menu's actions that restart or close the game
end the window with a choice (play, quit, preload, clear shaders) instead.
Menu::frame's per-key handling moved into Menu::press so both use it.

Ported from the VIctory fork's launcher, redrawn with font.rs's canvas and
the F1 theme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first page drew "PC" and "PLAY" as Bahnschrift text. They are the
launcher design's own letters again (launcher_shapes.rs, from the VIctory
fork's launcher): PC in the menu's text colour, PLAY in the accents'
gradient on a light button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- F1's page in the launcher says SAVE AND PLAY, BACK, PRELOAD SHADERS and
  CLEAR SHADER CACHE, without "restarts" or "next start" (launcher.menu.*
  over the menu's keys, only in the language the rest is in). SAVE AND CLOSE
  GAME, "(NOW: ...)", LIVE marks and the restart-required notes are left out.
- Saving from the launcher writes every DARNER_MENU_* row and every row the
  file already holds, so what the window showed is what starts.
- CLEAR SHADER CACHE clears in the window and stays; IMPORT SAVE stages the
  save and stays (PLAY starts with it).
- CONSOLE WINDOW (TOOLS, DARNER_SHOW_CONSOLE): hidden by default, shown for
  a question or an error. F1's restarts start a hidden conhost console.
- INTERFACE LANGUAGE changes the language at once in the launcher
  (i18n::select), since nothing restarts.
- PlayStation pads over HID drive the window too (launcher_pad_buttons),
  unless DUALSENSE is off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- launcher.menu.* keys were looked up under the wrong name, so the launcher
  still said SAVE AND RESTART NOW and SAVE FOR NEXT START. They are found
  now, and a test checks that each replaces a menu key.
- With more settings than fit, picking a row with the mouse centred the
  list on it, which moved another row under the pointer: the pick danced.
  The list now stays where it is while the mouse picks; a key, the wheel
  or another page moves it again.
- DARNER_OWN_CONSOLE=1: a batch file's console is hidden like a
  double-clicked darner.exe's. README: it, DARNER_SHOW_CONSOLE, and the
  launcher.menu.* keys for translators.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The game's own splash screen is no longer read for it (see #228).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The launcher draws F1's page, so it gets #297's fix with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
First-time contributor

scripts/bench.ps1 runs darner play with standard input redirected. With the launcher preference unset, the current gate requests a window in that unattended run.

The follow-up commit requires terminal input for the automatic launcher. --launcher still explicitly opens it with redirected input. In the Windows fixture, the default redirected invocation changed from opening the launcher to skipping it, while explicit --launcher, --preload, and the saved opt-out retained their behavior. The focused CLI check and asset policy passed.

If you cherry-pick or rebase the contribution, please keep the Git author. If you fold it into your own commit, please add this trailer.

Co-authored-by: andrewpozdnakov7-jpg <[email protected]>

`scripts/bench.ps1` runs `darner play` with standard input redirected. With the launcher preference unset, the current gate requests a window in that unattended run. The [follow-up commit](https://git.gtahub.st/andrewpozdnakov7-jpg/Darner/commit/3e93749c2b347bdd7f5456a4791f54d7451fa5df) requires terminal input for the automatic launcher. `--launcher` still explicitly opens it with redirected input. In the Windows fixture, the default redirected invocation changed from opening the launcher to skipping it, while explicit `--launcher`, `--preload`, and the saved opt-out retained their behavior. The focused CLI check and asset policy passed. If you cherry-pick or rebase the contribution, please keep the Git author. If you fold it into your own commit, please add this trailer. `Co-authored-by: andrewpozdnakov7-jpg <296776509+[email protected]>`
bench.ps1 starts darner play with standard input redirected. Skip the automatic launcher when that input is not a terminal and let explicit --launcher request it.

#302
https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg
Author
Contributor

Thanks, good catch. Your commit 3e93749 is now on the branch as is (fast-forward, your authorship kept). On it: cargo clippy --locked -p darner --all-targets -- -D warnings clean, cargo test --locked -p darner --bin darner play 61 passed, 0 failed. Not run in game: a double-clicked darner.exe or a batch file still has a terminal for input, so the launcher shows there as before.

Thanks, good catch. Your commit 3e93749 is now on the branch as is (fast-forward, your authorship kept). On it: `cargo clippy --locked -p darner --all-targets -- -D warnings` clean, `cargo test --locked -p darner --bin darner play` 61 passed, 0 failed. Not run in game: a double-clicked darner.exe or a batch file still has a terminal for input, so the launcher shows there as before.
The banner's right side now shows docs/darner-logo.png (the project owner's
picture, already listed in docs/asset-policy.md), decoded with WIC with its
transparency and drawn over the banner. The build's line beside it is the
version alone, since the logo names Darner. The "PC" outline (Montserrat)
is gone with its licence note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'launcher:starrockanonigtavi-launcher'
git switch 'starrockanonigtavi-launcher'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'starrockanonigtavi-launcher'
git switch 'starrockanonigtavi-launcher'
git rebase 'main'
git switch 'main'
git merge --ff-only 'starrockanonigtavi-launcher'
git switch 'starrockanonigtavi-launcher'
git rebase 'main'
git switch 'main'
git merge --no-ff 'starrockanonigtavi-launcher'
git switch 'main'
git merge --squash 'starrockanonigtavi-launcher'
git switch 'main'
git merge --ff-only 'starrockanonigtavi-launcher'
git switch 'main'
git merge 'starrockanonigtavi-launcher'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!302
No description provided.