chore: add SPDX copyright headers
This commit is contained in:
1 parent
0c67290f74
commit
29ad70fa16
182 files changed
+547
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
Copyright (C) 2026 Constantin Bauer
|
||||||
|
|
||||||
|
Unless otherwise stated, the source code in this repository is
|
||||||
|
copyrighted by Constantin Bauer and licensed under the GNU General Public
|
||||||
|
License v3.0. See LICENSE for the full license text.
|
||||||
@@ -214,8 +214,9 @@ contributions are welcome. fork it, branch it, PR it. see [CONTRIBUTING.md](CONT
|
|||||||
---
|
---
|
||||||
|
|
||||||
## license
|
## license
|
||||||
|
Copyright (C) 2026 Constantin Bauer
|
||||||
|
|
||||||
GPL-3.0. see [LICENSE](LICENSE).
|
This project is licensed under the GNU General Public License v3.0. see [LICENSE](LICENSE).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
public class RmclShim {
|
public class RmclShim {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// auth module: account storage (offline + microsoft) and the oauth device code flow
|
// auth module: account storage (offline + microsoft) and the oauth device code flow
|
||||||
mod accounts;
|
mod accounts;
|
||||||
mod oauth;
|
mod oauth;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// microsoft oauth device code flow for minecraft authentication.
|
// microsoft oauth device code flow for minecraft authentication.
|
||||||
// the flow goes: MSA device code -> MSA token -> xbox/mc token exchange -> mc profile fetch.
|
// the flow goes: MSA device code -> MSA token -> xbox/mc token exchange -> mc profile fetch.
|
||||||
// device code auth is used because it works without a redirect URI, which is nice for a TUI.
|
// device code auth is used because it works without a redirect URI, which is nice for a TUI.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn microsoft_account(cached_mc_token_expires_at: Option<i64>) -> Account {
|
fn microsoft_account(cached_mc_token_expires_at: Option<i64>) -> Account {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// cli handlers for account management (microsoft oauth + offline accounts)
|
// cli handlers for account management (microsoft oauth + offline accounts)
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// unified content management for mods, resource packs, and shaders.
|
// unified content management for mods, resource packs, and shaders.
|
||||||
// all three content types share the same list/enable/disable workflow,
|
// all three content types share the same list/enable/disable workflow,
|
||||||
// just with different scanner functions plugged in.
|
// just with different scanner functions plugged in.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// modpack importing from modrinth (remote slug/url) or local files (.mrpack, mmc zips).
|
// modpack importing from modrinth (remote slug/url) or local files (.mrpack, mmc zips).
|
||||||
// resolves the input, downloads if needed, then hands off to the import engine.
|
// resolves the input, downloads if needed, then hands off to the import engine.
|
||||||
use clap::ArgMatches;
|
use clap::ArgMatches;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// instance lifecycle: create, delete, rename, launch, config, desktop shortcuts.
|
// instance lifecycle: create, delete, rename, launch, config, desktop shortcuts.
|
||||||
// the heaviest handler in the CLI since instances are the core concept.
|
// the heaviest handler in the CLI since instances are the core concept.
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// viewing minecraft log files from the CLI, with optional `--follow` for tailing
|
// viewing minecraft log files from the CLI, with optional `--follow` for tailing
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// cli entry point and clap command definitions.
|
// cli entry point and clap command definitions.
|
||||||
// no subcommand = launch TUI, otherwise dispatch to the appropriate handler.
|
// no subcommand = launch TUI, otherwise dispatch to the appropriate handler.
|
||||||
mod account;
|
mod account;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::add_offline_account;
|
use super::add_offline_account;
|
||||||
use crate::auth::{Account, AccountStore, AccountType};
|
use crate::auth::{Account, AccountStore, AccountType};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::build_command;
|
use super::build_command;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::find_entry_by_stem;
|
use super::find_entry_by_stem;
|
||||||
use crate::instance::content::entry::ContentEntry;
|
use crate::instance::content::entry::ContentEntry;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn version(name: &str, number: &str) -> modrinth::VersionInfo {
|
fn version(name: &str, number: &str) -> modrinth::VersionInfo {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::parse_resolution;
|
use super::parse_resolution;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::resolve_log_path;
|
use super::resolve_log_path;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::filter_manifest_versions;
|
use super::filter_manifest_versions;
|
||||||
use crate::net::mojang::{LatestVersions, VersionEntry, VersionManifest};
|
use crate::net::mojang::{LatestVersions, VersionEntry, VersionManifest};
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// shared CLI helpers: confirmation prompts, arg extraction, instance validation
|
// shared CLI helpers: confirmation prompts, arg extraction, instance validation
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// lists available game versions, optionally filtered by mod loader support.
|
// lists available game versions, optionally filtered by mod loader support.
|
||||||
// fetches the mojang manifest and cross-references with loader APIs
|
// fetches the mojang manifest and cross-references with loader APIs
|
||||||
// to show only versions that actually work with a given loader.
|
// to show only versions that actually work with a given loader.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// config loading: reads config.toml from the platform config dir, creates defaults if missing.
|
// config loading: reads config.toml from the platform config dir, creates defaults if missing.
|
||||||
// everything lands in the SETTINGS static so the rest of the app can just grab it.
|
// everything lands in the SETTINGS static so the rest of the app can just grab it.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// all the config structs that map to sections in config.toml.
|
// all the config structs that map to sections in config.toml.
|
||||||
// everything has sane defaults so a blank file (or no file) still works.
|
// everything has sane defaults so a blank file (or no file) still works.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
// cover every BorderStyle variant. a mutation that swaps two arms of the
|
// cover every BorderStyle variant. a mutation that swaps two arms of the
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// theme resolution: loads theme.toml, picks a base theme (builtin or custom file),
|
// theme resolution: loads theme.toml, picks a base theme (builtin or custom file),
|
||||||
// then layers user color overrides on top. supports loading .toml themes from the
|
// then layers user color overrides on top. supports loading .toml themes from the
|
||||||
// config/theme/ directory or by absolute path.
|
// config/theme/ directory or by absolute path.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// thread-safe FIFO queue for error/warning toasts displayed in the UI.
|
// thread-safe FIFO queue for error/warning toasts displayed in the UI.
|
||||||
// also (ab)used for INFO toasts like "desktop shortcut created" because
|
// also (ab)used for INFO toasts like "desktop shortcut created" because
|
||||||
// why build a separate notification system when this one works fine.
|
// why build a separate notification system when this one works fine.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// application feedback shared by background work and every frontend.
|
// application feedback shared by background work and every frontend.
|
||||||
|
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// global progress state shared between background tasks and the status bar widget.
|
// global progress state shared between background tasks and the status bar widget.
|
||||||
// background tasks set the action/progress, the render loop reads it every frame.
|
// background tasks set the action/progress, the render loop reads it every frame.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::tests::TEST_LOCK;
|
use crate::tests::TEST_LOCK;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::tests::TEST_LOCK;
|
use crate::tests::TEST_LOCK;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// data pack scanning backed by the same pack.mcmeta reader as resource packs.
|
// data pack scanning backed by the same pack.mcmeta reader as resource packs.
|
||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::collections::{HashMap, HashSet, VecDeque};
|
use std::collections::{HashMap, HashSet, VecDeque};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::atomic::{AtomicU64, Ordering};
|
use std::sync::atomic::{AtomicU64, Ordering};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
use super::icons::IconCell;
|
use super::icons::IconCell;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// terminal icon rasterization shared by every content type and markdown.
|
// terminal icon rasterization shared by every content type and markdown.
|
||||||
|
|
||||||
// a single "pixel" in a terminal icon.
|
// a single "pixel" in a terminal icon.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// scanning and toggling instance content (mods, resource packs, shaders, worlds).
|
// scanning and toggling instance content (mods, resource packs, shaders, worlds).
|
||||||
// minecraft uses a ".disabled" suffix convention for disabled content, so this leans on that heavily.
|
// minecraft uses a ".disabled" suffix convention for disabled content, so this leans on that heavily.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// mod scanning and loader-specific metadata extraction.
|
// mod scanning and loader-specific metadata extraction.
|
||||||
// jar files are just zips, so it cracks them open looking for loader-specific
|
// jar files are just zips, so it cracks them open looking for loader-specific
|
||||||
// metadata (fabric.mod.json, quilt.mod.json, mods.toml, mcmod.info) to get
|
// metadata (fabric.mod.json, quilt.mod.json, mods.toml, mcmod.info) to get
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// shared pack.mcmeta scanning for resource packs and shader packs.
|
// shared pack.mcmeta scanning for resource packs and shader packs.
|
||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// resource pack scanner backed by the shared pack.mcmeta reader.
|
// resource pack scanner backed by the shared pack.mcmeta reader.
|
||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// shader pack scanner backed by the shared pack.mcmeta reader.
|
// shader pack scanner backed by the shared pack.mcmeta reader.
|
||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::sync::{Arc, LazyLock, Mutex};
|
use std::sync::{Arc, LazyLock, Mutex};
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// world save scanning. worlds are always directories (never zips) and store
|
// world save scanning. worlds are always directories (never zips) and store
|
||||||
// their icon as icon.png. also computes an approximate size from top-level
|
// their icon as icon.png. also computes an approximate size from top-level
|
||||||
// files + region data so the user gets some sense of how chonky their world is.
|
// files + region data so the user gets some sense of how chonky their world is.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// creates OS-native shortcuts for launching instances directly:
|
// creates OS-native shortcuts for launching instances directly:
|
||||||
// .desktop files on linux, .bat on windows, .command on macos
|
// .desktop files on linux, .bat on windows, .command on macos
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// curseforge modpack archives: manifest.json references provider file ids,
|
// curseforge modpack archives: manifest.json references provider file ids,
|
||||||
// while the overrides directory contains configs and other bundled files.
|
// while the overrides directory contains configs and other bundled files.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// multimc / prism launcher instance import: mods and configs are bundled
|
// multimc / prism launcher instance import: mods and configs are bundled
|
||||||
// in the zip. we install the game + loader normally, then extract the
|
// in the zip. we install the game + loader normally, then extract the
|
||||||
// archive contents over it.
|
// archive contents over it.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// modpack importing: parses user input, detects pack format from zip contents,
|
// modpack importing: parses user input, detects pack format from zip contents,
|
||||||
// builds a summary, and delegates the actual import to format-specific modules.
|
// builds a summary, and delegates the actual import to format-specific modules.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// modrinth .mrpack import: parse the manifest, download all the mods,
|
// modrinth .mrpack import: parse the manifest, download all the mods,
|
||||||
// and extract config/resource overrides from the zip
|
// and extract config/resource overrides from the zip
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// java runtime discovery shared by launching, loader installation, and settings.
|
// java runtime discovery shared by launching, loader installation, and settings.
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// builds the full java command line and spawns minecraft as a child process.
|
// builds the full java command line and spawns minecraft as a child process.
|
||||||
// handles classpath assembly, auth token injection, and log capture.
|
// handles classpath assembly, auth token injection, and log capture.
|
||||||
// loader-specific patches live in submodules (e.g. patches.rs for lwjgl3ify).
|
// loader-specific patches live in submodules (e.g. patches.rs for lwjgl3ify).
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// live minecraft process log parser.
|
// live minecraft process log parser.
|
||||||
//
|
//
|
||||||
// disk launch logs stay raw, but the tui needs enough structure to color and
|
// disk launch logs stay raw, but the tui needs enough structure to color and
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// classpath and jvm patches for legacy forge on java 9+.
|
// classpath and jvm patches for legacy forge on java 9+.
|
||||||
// lwjgl3ify ships a patched launchwrapper and retrofuturabootstrap that
|
// lwjgl3ify ships a patched launchwrapper and retrofuturabootstrap that
|
||||||
// replace the old URLClassLoader-based launcher with one that works on
|
// replace the old URLClassLoader-based launcher with one that works on
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// fabric installation. the nice one: just fetch a profile json and download
|
// fabric installation. the nice one: just fetch a profile json and download
|
||||||
// the libraries. no java installer nonsense required.
|
// the libraries. no java installer nonsense required.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// forge installation. modern forge runs a java installer, old forge (pre-1.13)
|
// forge installation. modern forge runs a java installer, old forge (pre-1.13)
|
||||||
// can't run headless so we extract the profile and libraries from the jar
|
// can't run headless so we extract the profile and libraries from the jar
|
||||||
// directly. the installer jar gets cleaned up either way.
|
// directly. the installer jar gets cleaned up either way.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// maven coordinate handling shared by loader installation and launch profiles.
|
// maven coordinate handling shared by loader installation and launch profiles.
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// mod loader installation. each loader (fabric, forge, neoforge, quilt, vanilla)
|
// mod loader installation. each loader (fabric, forge, neoforge, quilt, vanilla)
|
||||||
// implements the same trait so the UI can treat them uniformly: pick game version,
|
// implements the same trait so the UI can treat them uniformly: pick game version,
|
||||||
// pick loader version, install. the actual installation strategies differ wildly
|
// pick loader version, install. the actual installation strategies differ wildly
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// neoforge installation. same java installer dance as forge (they forked from it,
|
// neoforge installation. same java installer dance as forge (they forked from it,
|
||||||
// after all), just with different URLs and version naming.
|
// after all), just with different URLs and version naming.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// quilt installation. same clean approach as fabric (profile json + library
|
// quilt installation. same clean approach as fabric (profile json + library
|
||||||
// downloads). they're basically fabric's cooler sibling.
|
// downloads). they're basically fabric's cooler sibling.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// vanilla "installer". doesn't actually install anything since the launch
|
// vanilla "installer". doesn't actually install anything since the launch
|
||||||
// process already handles downloading vanilla assets/libraries. this just
|
// process already handles downloading vanilla assets/libraries. this just
|
||||||
// exists so vanilla fits the same ModLoaderInstaller trait as everyone else.
|
// exists so vanilla fits the same ModLoaderInstaller trait as everyone else.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// in-memory ring buffer for stdout/stderr from running mc instances.
|
// in-memory ring buffer for stdout/stderr from running mc instances.
|
||||||
// capped at 2000 lines per instance so it doesn't eat all the RAM
|
// capped at 2000 lines per instance so it doesn't eat all the RAM
|
||||||
// if someone leaves a server running for a week. you're welcome.
|
// if someone leaves a server running for a week. you're welcome.
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
pub mod files;
|
pub mod files;
|
||||||
pub mod live;
|
pub mod live;
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// instance management: creation, launching, importing modpacks, and all the
|
// instance management: creation, launching, importing modpacks, and all the
|
||||||
// bookkeeping that comes with pretending to be a real launcher
|
// bookkeeping that comes with pretending to be a real launcher
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// global tracking for running minecraft instances. everything is behind
|
// global tracking for running minecraft instances. everything is behind
|
||||||
// Arc<Mutex<>> because the launch/monitor tasks live on separate tokio threads
|
// Arc<Mutex<>> because the launch/monitor tasks live on separate tokio threads
|
||||||
// and the TUI render loop needs to read state every frame.
|
// and the TUI render loop needs to read state every frame.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
// width/height are read from the actual image file so the TUI can show
|
// width/height are read from the actual image file so the TUI can show
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::instance::content::entry::{ContentEntry, toggle_entry};
|
use crate::instance::content::entry::{ContentEntry, toggle_entry};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
struct NoopProgress;
|
struct NoopProgress;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::super::packs::extract_description;
|
use super::super::packs::extract_description;
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
use flate2::{Compression, write::GzEncoder};
|
use flate2::{Compression, write::GzEncoder};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn parse_all(lines: &[(LogStream, &str)]) -> Vec<ParsedLogEvent> {
|
fn parse_all(lines: &[(LogStream, &str)]) -> Vec<ParsedLogEvent> {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[rstest::rstest]
|
#[rstest::rstest]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
// builds an in-memory zip in a tempdir with the given json as
|
// builds an in-memory zip in a tempdir with the given json as
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
// the factory maps every ModLoader variant to its concrete installer.
|
// the factory maps every ModLoader variant to its concrete installer.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::net::mojang::{LatestVersions, VersionEntry, VersionManifest};
|
use crate::net::mojang::{LatestVersions, VersionEntry, VersionManifest};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// primitives for parsing, merging, and rendering mojang-format launch
|
// primitives for parsing, merging, and rendering mojang-format launch
|
||||||
// profiles. consumed by the vanilla launcher and the loader install paths
|
// profiles. consumed by the vanilla launcher and the loader install paths
|
||||||
// (forge/neoforge/fabric/quilt) - anything that reads a mojang-style
|
// (forge/neoforge/fabric/quilt) - anything that reads a mojang-style
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// mojang-format launch profile types. mirrors the on-disk JSON schema
|
// mojang-format launch profile types. mirrors the on-disk JSON schema
|
||||||
// used by vanilla versions, forge installer output, neoforge installer
|
// used by vanilla versions, forge installer output, neoforge installer
|
||||||
// output, fabric profiles, and quilt profiles. parsing is lossless for
|
// output, fabric profiles, and quilt profiles. parsing is lossless for
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// renders a parsed launch profile into final argv-style lists for the JVM
|
// renders a parsed launch profile into final argv-style lists for the JVM
|
||||||
// and the game. resolves conditional argument shapes (`{rules, value}`),
|
// and the game. resolves conditional argument shapes (`{rules, value}`),
|
||||||
// filters them through the rule evaluator, and substitutes mojang template
|
// filters them through the rule evaluator, and substitutes mojang template
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// resolves the `inheritsFrom` chain of a parsed `LaunchProfile`. mojang's
|
// resolves the `inheritsFrom` chain of a parsed `LaunchProfile`. mojang's
|
||||||
// version JSON allows a profile to inherit from another profile by id; the
|
// version JSON allows a profile to inherit from another profile by id; the
|
||||||
// loaders (forge / neoforge / fabric / quilt) use this to layer their
|
// loaders (forge / neoforge / fabric / quilt) use this to layer their
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// mojang rule evaluation. profiles, libraries, and argument entries can
|
// mojang rule evaluation. profiles, libraries, and argument entries can
|
||||||
// carry conditional rules that filter them by OS, architecture, or feature
|
// carry conditional rules that filter them by OS, architecture, or feature
|
||||||
// flags. this module is the single source of truth for that semantics -
|
// flags. this module is the single source of truth for that semantics -
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// system-detection helpers shared by launch and install paths. mojang
|
// system-detection helpers shared by launch and install paths. mojang
|
||||||
// names some things differently from rust's std::env::consts (e.g. macOS
|
// names some things differently from rust's std::env::consts (e.g. macOS
|
||||||
// is "osx" in mojang profile rules), so this module is the single source
|
// is "osx" in mojang profile rules), so this module is the single source
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
// template substitution for mojang-style launch arguments. profiles use
|
// template substitution for mojang-style launch arguments. profiles use
|
||||||
// `${variable_name}` placeholders that the launcher fills in at launch
|
// `${variable_name}` placeholders that the launcher fills in at launch
|
||||||
// time from the active session: paths, the user's account info, the
|
// time from the active session: paths, the user's account info, the
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::launch_profile::rules::RuleAction;
|
use crate::launch_profile::rules::RuleAction;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::launch_profile::model::Arguments;
|
use crate::launch_profile::model::Arguments;
|
||||||
use crate::launch_profile::rules::{FeatureSet, OsCondition, Rule, RuleAction};
|
use crate::launch_profile::rules::{FeatureSet, OsCondition, Rule, RuleAction};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::launch_profile::model::{Argument, ArgumentValue, AssetIndex, JavaVersion, Library};
|
use crate::launch_profile::model::{Argument, ArgumentValue, AssetIndex, JavaVersion, Library};
|
||||||
use crate::launch_profile::rules::{Rule, RuleAction};
|
use crate::launch_profile::rules::{Rule, RuleAction};
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn linux_ctx<'a>(features: &'a FeatureSet) -> RuleContext<'a> {
|
fn linux_ctx<'a>(features: &'a FeatureSet) -> RuleContext<'a> {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 Constantin Bauer
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|||||||
Loaded 100 of 182 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user