[PR #3612] [MERGED] Launcher: copy Prism, MultiMC and official launcher instances into Java instances #5095

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-import-launchers


📝 Commits (1)

  • 7db6a08 Launcher: copy Prism, MultiMC and official launcher instances into Java instances

📊 Changes

5 files changed (+615 additions, -1 deletions)

View changed files

📝 docs/launcher-commands.md (+22 -0)
📝 launcher/src/cli.rs (+98 -1)
📝 launcher/src/lib.rs (+1 -0)
➕ launcher/src/other_launchers.rs (+308 -0)
➕ launcher/src/other_launchers/tests.rs (+186 -0)

📄 Description

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

The launcher finds the instances Prism Launcher, MultiMC and the official launcher keep, without changing anything in their folders, and copies one into a new Minecraft: Java Edition instance.

Formats come from public descriptions only (clean room; no launcher's source was read):

  • Prism/MultiMC: instances/<id>/instance.cfg (INI name), mmc-pack.json (components: net.minecraft and the loader's uid) and the game folder minecraft/ or .minecraft/. Sources: Migrating from MultiMC, Data locations, Troubleshooting, and public example mmc-pack.json files.
  • Official launcher: launcher_profiles.json profiles (name, type, lastVersionId, gameDir). A loader profile's game version comes from its version JSON's inheritsFrom. Source: minecraft.wiki.

What changes:

  • other_launchers.rs: detection (scan over sources::known_folders, in_folder for a chosen folder), the loader (Fabric, Quilt, NeoForge, Forge) and its version, and copy_game.
    • An instance's own game folder is copied whole, except logs/ and crash-reports/.
    • When the official launcher's game folder is its own root, only what an instance holds is copied (saves, mods, config, packs, options, servers): not versions/, libraries/ or assets/.
  • CLI:
    • instance others [--folder] lists them.
    • instance copy-from <name> [--folder] [--as <new name>] makes the instance.
  • The loader is detected and shown. Installing it for the copy comes with the Fabric/Quilt PR; until then the CLI says so, and the copied mods wait in mods/.
  • The Modrinth App and the CurseForge app come in a follow-up.

Checked live with a fixture Prism folder in a scratch home (never the real launcher folders): others lists it, and copy-from makes the instance with saves/ and mods/ copied and logs/ left out.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at e1844d064, 2 min 45 s)

Check Result
Scope ⚠️ 5 files, +615 −1; 594 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 408 passed (2 min 34 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (3 s)
launcher clippy ✅ (3 s)
launcher tests ✅ 255 passed (4 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/3612 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-import-launchers` --- ### 📝 Commits (1) - [`7db6a08`](https://github.com/horizon-rust/horizon/commit/7db6a085bf12fc1d3ba48a970c0f5b05cff9af6d) Launcher: copy Prism, MultiMC and official launcher instances into Java instances ### 📊 Changes **5 files changed** (+615 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+22 -0) 📝 `launcher/src/cli.rs` (+98 -1) 📝 `launcher/src/lib.rs` (+1 -0) ➕ `launcher/src/other_launchers.rs` (+308 -0) ➕ `launcher/src/other_launchers/tests.rs` (+186 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The launcher finds the instances Prism Launcher, MultiMC and the official launcher keep, without changing anything in their folders, and copies one into a new Minecraft: Java Edition instance. Formats come from public descriptions only (clean room; no launcher's source was read): - Prism/MultiMC: `instances/<id>/instance.cfg` (INI `name`), `mmc-pack.json` (`components`: `net.minecraft` and the loader's uid) and the game folder `minecraft/` or `.minecraft/`. Sources: [Migrating from MultiMC](https://prismlauncher.org/wiki/getting-started/migrating-multimc/), [Data locations](https://prismlauncher.org/wiki/getting-started/data-location/), [Troubleshooting](https://prismlauncher.org/wiki/overview/troubleshooting/), and public example `mmc-pack.json` files. - Official launcher: `launcher_profiles.json` profiles (`name`, `type`, `lastVersionId`, `gameDir`). A loader profile's game version comes from its version JSON's `inheritsFrom`. Source: [minecraft.wiki](https://minecraft.wiki/w/Launcher_profiles.json). What changes: - `other_launchers.rs`: detection (`scan` over `sources::known_folders`, `in_folder` for a chosen folder), the loader (Fabric, Quilt, NeoForge, Forge) and its version, and `copy_game`. - An instance's own game folder is copied whole, except `logs/` and `crash-reports/`. - When the official launcher's game folder is its own root, only what an instance holds is copied (saves, mods, config, packs, options, servers): not `versions/`, `libraries/` or `assets/`. - CLI: - `instance others [--folder]` lists them. - `instance copy-from <name> [--folder] [--as <new name>]` makes the instance. - The loader is detected and shown. Installing it for the copy comes with the Fabric/Quilt PR; until then the CLI says so, and the copied mods wait in `mods/`. - The Modrinth App and the CurseForge app come in a follow-up. Checked live with a fixture Prism folder in a scratch home (never the real launcher folders): `others` lists it, and `copy-from` makes the instance with `saves/` and `mods/` copied and `logs/` left out. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at e1844d064, 2 min 45 s) | Check | Result | | --- | --- | | Scope | ⚠️ 5 files, +615 −1; 594 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 408 passed (2 min 34 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (3 s) | | launcher clippy | ✅ (3 s) | | launcher tests | ✅ 255 passed (4 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:10:12 +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#5095
No description provided.