[PR #3195] [MERGED] Launcher: Native mods switch, warning and Build in Settings #4842

Closed
opened 2026-11-03 05:08:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3195
Author: @ludovic111
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-native-mods-window


📝 Commits (4)

  • cd7f177 Launcher: a Native mods switch and Build in Settings, with the warning
  • 519edfa docs: native mods in the launcher window
  • febad05 launcher: French and Russian for the Native mods row
  • 505de82 Merge feat/launcher-native-mods-page (main merged in)

📊 Changes

5 files changed (+214 additions, -12 deletions)

View changed files

📝 docs/native-mods.md (+14 -10)
📝 launcher/lang/fr.json (+10 -1)
📝 launcher/lang/ru.json (+10 -1)
📝 launcher/src/backend.rs (+8 -0)
📝 launcher/src/main.rs (+172 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #3194 (native mods on the Mods page), which is stacked on #3189 (native-build). Review only the last two commits; GitHub retargets this to main when they merge.

What players get

Settings → Game → Native mods (experimental), off by default. Turned on:

  • Build opens a red warning: the mods run with full access to the computer, which mods (id version, the ones installed from the Mods page and turned on in the instance Play starts), and how long a first build takes. Only I trust these mods: build starts it; Cancel closes it.
  • While it builds, the row shows the step (Downloading Rust 42%, Compiling the game…); a failure shows its message in red; afterwards it shows native-<commit>-<key> plays in this instance.
  • The build runs on a thread through native_mods::build(base, folder, Some(&instance), …) (#3194): base is the instance's own non-native version, else the newest installed game or Nightly.

Ported from the native-mixins-1 worktree. docs/native-mods.md now describes the window, and its "Left to do" item for it is gone.

Proof

needs-proof (launcher). Mac mini, isolated HORIZON_LAUNCHER_HOME, HORIZON_HOME, XDG_*, HORIZON_LAUNCHER_NO_SELF_UPDATE=1, HORIZON_NO_AUDIO=1:

  1. mods install --source horizon --instance vein-test veinminer from a test index built from horizon-mods#20 (Veinminer 0.3.0, pinned to Nightly 83f15fa), then the window on that instance.
  2. Settings: the row is there and off; on, it shows native-83f15fa-4bbdb580b9ca plays in this instance. and Build (that build came from native-build --instance vein-test --trust-native-code, #3194's proof, where /veinminer status answered in the built game).
  3. Build → the red warning, Mods: veinminer 0.3.0, both buttons. I trust these mods: build → the same key, so the cached build is reused at once and the row returns to its status, no error.
  4. cargo clippy -p horizon-launcher --all-targets -- -D warnings and cargo test -p horizon-launcher pass.

Not proven here: a Play run with the built game (Play needs a Microsoft sign-in that owns Minecraft, which an isolated home doesn't have), Windows and Linux.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3195 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-native-mods-window` --- ### 📝 Commits (4) - [`cd7f177`](https://github.com/horizon-rust/horizon/commit/cd7f1771044fd5c23f4308a0dd5d2f01ea5b7a0b) Launcher: a Native mods switch and Build in Settings, with the warning - [`519edfa`](https://github.com/horizon-rust/horizon/commit/519edfac199c412df9af0f8fea2f66eb9b351f56) docs: native mods in the launcher window - [`febad05`](https://github.com/horizon-rust/horizon/commit/febad05c78f76163eeb248ed5413102a9b8dc817) launcher: French and Russian for the Native mods row - [`505de82`](https://github.com/horizon-rust/horizon/commit/505de825db6db756392416a372f71316c7d4a918) Merge feat/launcher-native-mods-page (main merged in) ### 📊 Changes **5 files changed** (+214 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `docs/native-mods.md` (+14 -10) 📝 `launcher/lang/fr.json` (+10 -1) 📝 `launcher/lang/ru.json` (+10 -1) 📝 `launcher/src/backend.rs` (+8 -0) 📝 `launcher/src/main.rs` (+172 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #3194 (native mods on the Mods page), which is stacked on #3189 (`native-build`). Review only the last two commits; GitHub retargets this to `main` when they merge. ## What players get Settings → Game → **Native mods (experimental)**, off by default. Turned on: - **Build** opens a red warning: the mods run with full access to the computer, which mods (`id version`, the ones installed from the Mods page and turned on in the instance Play starts), and how long a first build takes. Only **I trust these mods: build** starts it; **Cancel** closes it. - While it builds, the row shows the step (`Downloading Rust 42%`, `Compiling the game`…); a failure shows its message in red; afterwards it shows `native-<commit>-<key> plays in this instance.` - The build runs on a thread through `native_mods::build(base, folder, Some(&instance), …)` (#3194): base is the instance's own non-native version, else the newest installed game or Nightly. Ported from the native-mixins-1 worktree. `docs/native-mods.md` now describes the window, and its "Left to do" item for it is gone. ## Proof `needs-proof` (launcher). Mac mini, isolated `HORIZON_LAUNCHER_HOME`, `HORIZON_HOME`, `XDG_*`, `HORIZON_LAUNCHER_NO_SELF_UPDATE=1`, `HORIZON_NO_AUDIO=1`: 1. `mods install --source horizon --instance vein-test veinminer` from a test index built from horizon-mods#20 (Veinminer 0.3.0, pinned to Nightly `83f15fa`), then the window on that instance. 2. Settings: the row is there and off; on, it shows `native-83f15fa-4bbdb580b9ca plays in this instance.` and **Build** (that build came from `native-build --instance vein-test --trust-native-code`, #3194's proof, where `/veinminer status` answered in the built game). 3. **Build** → the red warning, `Mods: veinminer 0.3.0`, both buttons. **I trust these mods: build** → the same key, so the cached build is reused at once and the row returns to its status, no error. 4. `cargo clippy -p horizon-launcher --all-targets -- -D warnings` and `cargo test -p horizon-launcher` pass. Not proven here: a Play run with the built game (Play needs a Microsoft sign-in that owns Minecraft, which an isolated home doesn't have), Windows and Linux. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:20 +07:00
Sign in to join this conversation.
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
horizon-rust/horizon#4842
No description provided.