Commit Graph

4 Commits

Author SHA1 Message Date
52e2eae670 launcher: check for updates at start and update in one click (LAUNCHER-UPDATE)
At start the launcher runs git fetch in its folder. When the clone is
behind its upstream, the Play page says how many new commits there are
and shows an Update button. Update runs this file's own --update mode:
git pull --ff-only, then a rebuild of the runtime when d3d12/ changed,
with the output streamed like the other tools.

A copy downloaded as a zip has no .git; the launcher says that updating
needs a git clone. A Settings box turns the check off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:38:08 +01:00
afe0b798f4 Launcher tests and docs for -PrecompileAll
- tests: -PrecompileAll is among the switches checked against play-d3d12.ps1,
  and it is passed only with the precompile on.
- README.md, docs/launcher.md, d3d12/README.md: the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:30:37 -05:00
b43ad11673 launcher: an HTML page laid out like a publisher's game launcher, with a local server behind it
launcher/index.html is the window: a slim black rail of square tiles with a selection bar (four setups of the one
game), art over the whole window, the sections as uppercase words top right, the logo with one large light PLAY
button and a small menu button, and a row of black cards (what is still to do, the newest captures, the latest
changes). Mods, Saves, Captures, Tools, Settings and About are a dark sheet over the art. The logo is the
repository's assets/logo.svg; the art is drawn by the page. Nothing is loaded from the network.

launcher/serve.py serves it on 127.0.0.1 only and does what the page asks through the functions of
tools/leonida_launcher.py: settings, the mod switches, the save list and back-ups, captures, PLAY and Stop, the
tools. Requests need the Host of this machine, the run's token (a header for /api, a cookie for pictures and the
event stream), and name things by folder, index or name, never by path. --no-run looks only: PLAY and the tools
say what they would run and start nothing.

tools/leonida_launcher.py: the settings and the command line know the newer switches of scripts/play-d3d12.ps1
(-SeriesS, -Dlss, -FrameGen, -Aspect, -PresentScale, -Adapter), each checked before it is kept.

Tested: python -I tests/test_leonida_launcher.py (15 tests), check_no_game_data on the new files, and the page in
a browser against the server in --no-run mode (every page, the menu, PLAY printing its command). PLAY, Stop and the
tools were not run for real: another session had the game running. Launcher.bat still opens the Tkinter window.

AI-assisted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:39:47 -05:00
10d0a2d94f tools: Leonida Launcher, a Tkinter window to play, set options, manage mods and run tools
Launcher.bat (Windows) or python3 tools/leonida_launcher.py opens a dark launcher with a navigation column, a hero area
with a PLAY button, a status line and pages: Play (runs scripts/play-d3d12.ps1 or scripts/play-linux.sh, output in a
log box, state line, Stop with confirmation ending the process tree, never two runs at once), Settings (game folder
with a check for game_scarlett_master.exe, data folder, the switches read from play-d3d12.ps1), Mods (mods/*/mod.json
enabled flags written via leonida_mods), Tools (DLSS fetch after a confirmation, runtime rebuild, logs and screenshots
folders) and About. Settings live in %APPDATA%\Leonida\launcher.json (~/.config/leonida on Linux). Its own design and
wording, no game assets; the hero picture is the newest screenshot found at run time, else a gradient. The pure parts
have no Tkinter and are tested in tests/test_leonida_launcher.py.

Checked: python -I tests/test_leonida_launcher.py (13 tests), python -m compileall -q tools,
scripts/check_no_game_data.py. The window itself was not opened or clicked through. AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:59:48 -05:00