diff --git a/COPYRIGHT b/COPYRIGHT new file mode 100644 index 0000000..5a1eaf6 --- /dev/null +++ b/COPYRIGHT @@ -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. diff --git a/README.md b/README.md index 47b0a54..f733d8c 100644 --- a/README.md +++ b/README.md @@ -214,8 +214,9 @@ contributions are welcome. fork it, branch it, PR it. see [CONTRIBUTING.md](CONT --- ## 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). --- diff --git a/build.rs b/build.rs index 8641710..957ee58 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::env; use std::path::Path; use std::process::Command; diff --git a/java/RmclShim.java b/java/RmclShim.java index 441f934..2feb3bf 100644 --- a/java/RmclShim.java +++ b/java/RmclShim.java @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + import java.lang.reflect.Method; public class RmclShim { diff --git a/src/auth/mod.rs b/src/auth/mod.rs index 87e0d8e..6890662 100644 --- a/src/auth/mod.rs +++ b/src/auth/mod.rs @@ -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 mod accounts; mod oauth; diff --git a/src/auth/oauth.rs b/src/auth/oauth.rs index 87ebae6..022e82d 100644 --- a/src/auth/oauth.rs +++ b/src/auth/oauth.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // microsoft oauth device code flow for minecraft authentication. // 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. diff --git a/src/auth/tests/oauth.rs b/src/auth/tests/oauth.rs index ef8f05e..9bae34a 100644 --- a/src/auth/tests/oauth.rs +++ b/src/auth/tests/oauth.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; fn microsoft_account(cached_mc_token_expires_at: Option) -> Account { diff --git a/src/cli/account.rs b/src/cli/account.rs index b9032d4..e9f63ff 100644 --- a/src/cli/account.rs +++ b/src/cli/account.rs @@ -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) use std::io; use std::time::Duration; diff --git a/src/cli/content.rs b/src/cli/content.rs index fb65f8d..efdd4e9 100644 --- a/src/cli/content.rs +++ b/src/cli/content.rs @@ -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. // all three content types share the same list/enable/disable workflow, // just with different scanner functions plugged in. diff --git a/src/cli/import.rs b/src/cli/import.rs index f4d46ab..086ef15 100644 --- a/src/cli/import.rs +++ b/src/cli/import.rs @@ -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). // resolves the input, downloads if needed, then hands off to the import engine. use clap::ArgMatches; diff --git a/src/cli/instance.rs b/src/cli/instance.rs index 62c181d..bbed75d 100644 --- a/src/cli/instance.rs +++ b/src/cli/instance.rs @@ -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. // the heaviest handler in the CLI since instances are the core concept. use std::io; diff --git a/src/cli/log.rs b/src/cli/log.rs index dfd75e2..c492b89 100644 --- a/src/cli/log.rs +++ b/src/cli/log.rs @@ -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 use std::io; use std::path::{Path, PathBuf}; diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 91f1571..493e114 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // cli entry point and clap command definitions. // no subcommand = launch TUI, otherwise dispatch to the appropriate handler. mod account; diff --git a/src/cli/tests/account.rs b/src/cli/tests/account.rs index dde4529..9a087d4 100644 --- a/src/cli/tests/account.rs +++ b/src/cli/tests/account.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::add_offline_account; use crate::auth::{Account, AccountStore, AccountType}; diff --git a/src/cli/tests/arguments.rs b/src/cli/tests/arguments.rs index d9c49f5..8e854d4 100644 --- a/src/cli/tests/arguments.rs +++ b/src/cli/tests/arguments.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::build_command; #[test] diff --git a/src/cli/tests/content.rs b/src/cli/tests/content.rs index a479b92..b3001fc 100644 --- a/src/cli/tests/content.rs +++ b/src/cli/tests/content.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::find_entry_by_stem; use crate::instance::content::entry::ContentEntry; use std::path::PathBuf; diff --git a/src/cli/tests/import.rs b/src/cli/tests/import.rs index c5fbb32..d91cc05 100644 --- a/src/cli/tests/import.rs +++ b/src/cli/tests/import.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; fn version(name: &str, number: &str) -> modrinth::VersionInfo { diff --git a/src/cli/tests/instance.rs b/src/cli/tests/instance.rs index 05bdbf7..f6b26e5 100644 --- a/src/cli/tests/instance.rs +++ b/src/cli/tests/instance.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::parse_resolution; #[test] diff --git a/src/cli/tests/log.rs b/src/cli/tests/log.rs index 27018e7..1d78847 100644 --- a/src/cli/tests/log.rs +++ b/src/cli/tests/log.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::resolve_log_path; #[test] diff --git a/src/cli/tests/version.rs b/src/cli/tests/version.rs index 8865378..9a4bf4b 100644 --- a/src/cli/tests/version.rs +++ b/src/cli/tests/version.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::filter_manifest_versions; use crate::net::mojang::{LatestVersions, VersionEntry, VersionManifest}; use std::collections::HashSet; diff --git a/src/cli/utils.rs b/src/cli/utils.rs index a85fce8..195a000 100644 --- a/src/cli/utils.rs +++ b/src/cli/utils.rs @@ -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 use std::io::{self, Write}; diff --git a/src/cli/version.rs b/src/cli/version.rs index 4a522e2..0968cd0 100644 --- a/src/cli/version.rs +++ b/src/cli/version.rs @@ -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. // fetches the mojang manifest and cross-references with loader APIs // to show only versions that actually work with a given loader. diff --git a/src/config/mod.rs b/src/config/mod.rs index 77b8bef..caaaad4 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -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. // everything lands in the SETTINGS static so the rest of the app can just grab it. diff --git a/src/config/settings.rs b/src/config/settings.rs index 15aa18b..b38d932 100644 --- a/src/config/settings.rs +++ b/src/config/settings.rs @@ -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. // everything has sane defaults so a blank file (or no file) still works. diff --git a/src/config/tests/settings.rs b/src/config/tests/settings.rs index 80d5375..619ed44 100644 --- a/src/config/tests/settings.rs +++ b/src/config/tests/settings.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/config/tests/theme.rs b/src/config/tests/theme.rs index 97e3a26..01ae4d1 100644 --- a/src/config/tests/theme.rs +++ b/src/config/tests/theme.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; // cover every BorderStyle variant. a mutation that swaps two arms of the diff --git a/src/config/theme.rs b/src/config/theme.rs index 1d8642d..27fea15 100644 --- a/src/config/theme.rs +++ b/src/config/theme.rs @@ -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), // then layers user color overrides on top. supports loading .toml themes from the // config/theme/ directory or by absolute path. diff --git a/src/feedback/errors.rs b/src/feedback/errors.rs index 3412881..3743a7b 100644 --- a/src/feedback/errors.rs +++ b/src/feedback/errors.rs @@ -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. // also (ab)used for INFO toasts like "desktop shortcut created" because // why build a separate notification system when this one works fine. diff --git a/src/feedback/mod.rs b/src/feedback/mod.rs index 0b8744f..87f3b0d 100644 --- a/src/feedback/mod.rs +++ b/src/feedback/mod.rs @@ -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. use std::sync::atomic::{AtomicBool, Ordering}; diff --git a/src/feedback/progress.rs b/src/feedback/progress.rs index 5050cfe..f02e82c 100644 --- a/src/feedback/progress.rs +++ b/src/feedback/progress.rs @@ -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. // background tasks set the action/progress, the render loop reads it every frame. diff --git a/src/feedback/tests/errors.rs b/src/feedback/tests/errors.rs index d687e64..dd5f72d 100644 --- a/src/feedback/tests/errors.rs +++ b/src/feedback/tests/errors.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::tests::TEST_LOCK; diff --git a/src/feedback/tests/progress.rs b/src/feedback/tests/progress.rs index ecdcf62..473f957 100644 --- a/src/feedback/tests/progress.rs +++ b/src/feedback/tests/progress.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::tests::TEST_LOCK; diff --git a/src/instance/content/datapacks.rs b/src/instance/content/datapacks.rs index 5c27b59..a090508 100644 --- a/src/instance/content/datapacks.rs +++ b/src/instance/content/datapacks.rs @@ -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. use std::path::Path; diff --git a/src/instance/content/dependencies.rs b/src/instance/content/dependencies.rs index bd9660a..4a44bbb 100644 --- a/src/instance/content/dependencies.rs +++ b/src/instance/content/dependencies.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::{HashMap, HashSet, VecDeque}; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicU64, Ordering}; diff --git a/src/instance/content/entry.rs b/src/instance/content/entry.rs index 3fe074b..7434f4d 100644 --- a/src/instance/content/entry.rs +++ b/src/instance/content/entry.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::path::PathBuf; use super::icons::IconCell; diff --git a/src/instance/content/icons.rs b/src/instance/content/icons.rs index c0a2d6d..0f7472d 100644 --- a/src/instance/content/icons.rs +++ b/src/instance/content/icons.rs @@ -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. // a single "pixel" in a terminal icon. diff --git a/src/instance/content/mod.rs b/src/instance/content/mod.rs index 44c479a..919abd6 100644 --- a/src/instance/content/mod.rs +++ b/src/instance/content/mod.rs @@ -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). // minecraft uses a ".disabled" suffix convention for disabled content, so this leans on that heavily. diff --git a/src/instance/content/mods.rs b/src/instance/content/mods.rs index 63fce9d..043aa25 100644 --- a/src/instance/content/mods.rs +++ b/src/instance/content/mods.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // mod scanning and loader-specific metadata extraction. // 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 diff --git a/src/instance/content/packs.rs b/src/instance/content/packs.rs index 12a7de4..fee1567 100644 --- a/src/instance/content/packs.rs +++ b/src/instance/content/packs.rs @@ -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. use std::path::Path; diff --git a/src/instance/content/provider.rs b/src/instance/content/provider.rs index 3d233ca..ed59491 100644 --- a/src/instance/content/provider.rs +++ b/src/instance/content/provider.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::HashMap; use async_trait::async_trait; diff --git a/src/instance/content/resource_packs.rs b/src/instance/content/resource_packs.rs index 4818571..162d760 100644 --- a/src/instance/content/resource_packs.rs +++ b/src/instance/content/resource_packs.rs @@ -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. use std::path::Path; diff --git a/src/instance/content/shaders.rs b/src/instance/content/shaders.rs index 0434d99..59892f3 100644 --- a/src/instance/content/shaders.rs +++ b/src/instance/content/shaders.rs @@ -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. use std::path::Path; diff --git a/src/instance/content/updates.rs b/src/instance/content/updates.rs index 696b95b..9a08b9a 100644 --- a/src/instance/content/updates.rs +++ b/src/instance/content/updates.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::sync::{Arc, LazyLock, Mutex}; use serde::{Deserialize, Serialize}; diff --git a/src/instance/content/worlds.rs b/src/instance/content/worlds.rs index 4097dbb..9a844ea 100644 --- a/src/instance/content/worlds.rs +++ b/src/instance/content/worlds.rs @@ -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 // 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. diff --git a/src/instance/desktop.rs b/src/instance/desktop.rs index 5ec802d..21bd615 100644 --- a/src/instance/desktop.rs +++ b/src/instance/desktop.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // creates OS-native shortcuts for launching instances directly: // .desktop files on linux, .bat on windows, .command on macos diff --git a/src/instance/import/curseforge.rs b/src/instance/import/curseforge.rs index b58f254..8304378 100644 --- a/src/instance/import/curseforge.rs +++ b/src/instance/import/curseforge.rs @@ -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, // while the overrides directory contains configs and other bundled files. diff --git a/src/instance/import/mmc.rs b/src/instance/import/mmc.rs index 302a110..fc775a1 100644 --- a/src/instance/import/mmc.rs +++ b/src/instance/import/mmc.rs @@ -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 // in the zip. we install the game + loader normally, then extract the // archive contents over it. diff --git a/src/instance/import/mod.rs b/src/instance/import/mod.rs index 306a95d..e8b4ac5 100644 --- a/src/instance/import/mod.rs +++ b/src/instance/import/mod.rs @@ -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, // builds a summary, and delegates the actual import to format-specific modules. diff --git a/src/instance/import/mrpack.rs b/src/instance/import/mrpack.rs index bf43ac8..36db6c5 100644 --- a/src/instance/import/mrpack.rs +++ b/src/instance/import/mrpack.rs @@ -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, // and extract config/resource overrides from the zip diff --git a/src/instance/import/refresh.rs b/src/instance/import/refresh.rs index 00e766d..ebf0ce0 100644 --- a/src/instance/import/refresh.rs +++ b/src/instance/import/refresh.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::HashSet; use std::path::{Path, PathBuf}; diff --git a/src/instance/java.rs b/src/instance/java.rs index adbe7c8..08aec24 100644 --- a/src/instance/java.rs +++ b/src/instance/java.rs @@ -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. #[must_use] diff --git a/src/instance/launch/mod.rs b/src/instance/launch/mod.rs index 7ddf9ca..dc676e4 100644 --- a/src/instance/launch/mod.rs +++ b/src/instance/launch/mod.rs @@ -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. // handles classpath assembly, auth token injection, and log capture. // loader-specific patches live in submodules (e.g. patches.rs for lwjgl3ify). diff --git a/src/instance/launch/parser.rs b/src/instance/launch/parser.rs index 5e04b0a..7397ac6 100644 --- a/src/instance/launch/parser.rs +++ b/src/instance/launch/parser.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // live minecraft process log parser. // // disk launch logs stay raw, but the tui needs enough structure to color and diff --git a/src/instance/launch/patches.rs b/src/instance/launch/patches.rs index cc50cf2..d9d0a4a 100644 --- a/src/instance/launch/patches.rs +++ b/src/instance/launch/patches.rs @@ -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+. // lwjgl3ify ships a patched launchwrapper and retrofuturabootstrap that // replace the old URLClassLoader-based launcher with one that works on diff --git a/src/instance/loader/fabric.rs b/src/instance/loader/fabric.rs index 1c23377..8a16782 100644 --- a/src/instance/loader/fabric.rs +++ b/src/instance/loader/fabric.rs @@ -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 // the libraries. no java installer nonsense required. diff --git a/src/instance/loader/forge.rs b/src/instance/loader/forge.rs index 85ad18a..0959912 100644 --- a/src/instance/loader/forge.rs +++ b/src/instance/loader/forge.rs @@ -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) // can't run headless so we extract the profile and libraries from the jar // directly. the installer jar gets cleaned up either way. diff --git a/src/instance/loader/maven.rs b/src/instance/loader/maven.rs index 7e93d6b..8848113 100644 --- a/src/instance/loader/maven.rs +++ b/src/instance/loader/maven.rs @@ -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. #[must_use] diff --git a/src/instance/loader/mod.rs b/src/instance/loader/mod.rs index 18ed166..62bab98 100644 --- a/src/instance/loader/mod.rs +++ b/src/instance/loader/mod.rs @@ -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) // implements the same trait so the UI can treat them uniformly: pick game version, // pick loader version, install. the actual installation strategies differ wildly diff --git a/src/instance/loader/neoforge.rs b/src/instance/loader/neoforge.rs index 4957541..7be7494 100644 --- a/src/instance/loader/neoforge.rs +++ b/src/instance/loader/neoforge.rs @@ -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, // after all), just with different URLs and version naming. diff --git a/src/instance/loader/quilt.rs b/src/instance/loader/quilt.rs index 238b4de..940f237 100644 --- a/src/instance/loader/quilt.rs +++ b/src/instance/loader/quilt.rs @@ -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 // downloads). they're basically fabric's cooler sibling. diff --git a/src/instance/loader/vanilla.rs b/src/instance/loader/vanilla.rs index aeed8e5..8dc0520 100644 --- a/src/instance/loader/vanilla.rs +++ b/src/instance/loader/vanilla.rs @@ -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 // process already handles downloading vanilla assets/libraries. this just // exists so vanilla fits the same ModLoaderInstaller trait as everyone else. diff --git a/src/instance/logs/live.rs b/src/instance/logs/live.rs index dfe72c1..a02e2d2 100644 --- a/src/instance/logs/live.rs +++ b/src/instance/logs/live.rs @@ -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. // 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. diff --git a/src/instance/logs/mod.rs b/src/instance/logs/mod.rs index 57fac3a..b854acb 100644 --- a/src/instance/logs/mod.rs +++ b/src/instance/logs/mod.rs @@ -1,2 +1,5 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + pub mod files; pub mod live; diff --git a/src/instance/mod.rs b/src/instance/mod.rs index 74a0251..7aa53c4 100644 --- a/src/instance/mod.rs +++ b/src/instance/mod.rs @@ -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 // bookkeeping that comes with pretending to be a real launcher diff --git a/src/instance/runtime.rs b/src/instance/runtime.rs index c1d1055..5cb2a8b 100644 --- a/src/instance/runtime.rs +++ b/src/instance/runtime.rs @@ -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 // Arc> because the launch/monitor tasks live on separate tokio threads // and the TUI render loop needs to read state every frame. diff --git a/src/instance/screenshots.rs b/src/instance/screenshots.rs index d71e854..461ab14 100644 --- a/src/instance/screenshots.rs +++ b/src/instance/screenshots.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::path::{Path, PathBuf}; // width/height are read from the actual image file so the TUI can show diff --git a/src/instance/tests/config_sync.rs b/src/instance/tests/config_sync.rs index 34903f0..599727d 100644 --- a/src/instance/tests/config_sync.rs +++ b/src/instance/tests/config_sync.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/content/dependencies.rs b/src/instance/tests/content/dependencies.rs index ef6e2ce..c6b0bf5 100644 --- a/src/instance/tests/content/dependencies.rs +++ b/src/instance/tests/content/dependencies.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::HashMap; use std::path::{Path, PathBuf}; diff --git a/src/instance/tests/content/icons.rs b/src/instance/tests/content/icons.rs index aaf16b4..3649fc4 100644 --- a/src/instance/tests/content/icons.rs +++ b/src/instance/tests/content/icons.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/content/manifest.rs b/src/instance/tests/content/manifest.rs index 00cf2da..7ea85cc 100644 --- a/src/instance/tests/content/manifest.rs +++ b/src/instance/tests/content/manifest.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/content/mods.rs b/src/instance/tests/content/mods.rs index 5186bc9..5809077 100644 --- a/src/instance/tests/content/mods.rs +++ b/src/instance/tests/content/mods.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::instance::content::entry::{ContentEntry, toggle_entry}; use std::path::PathBuf; diff --git a/src/instance/tests/content/provider.rs b/src/instance/tests/content/provider.rs index eb6de94..f0408a4 100644 --- a/src/instance/tests/content/provider.rs +++ b/src/instance/tests/content/provider.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/content/reconcile.rs b/src/instance/tests/content/reconcile.rs index 63c1b8b..5efc68c 100644 --- a/src/instance/tests/content/reconcile.rs +++ b/src/instance/tests/content/reconcile.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; struct NoopProgress; diff --git a/src/instance/tests/content/resource_packs.rs b/src/instance/tests/content/resource_packs.rs index bfabac5..e44a549 100644 --- a/src/instance/tests/content/resource_packs.rs +++ b/src/instance/tests/content/resource_packs.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::super::packs::extract_description; use serde_json::json; diff --git a/src/instance/tests/content/worlds.rs b/src/instance/tests/content/worlds.rs index 46c1fd1..78a808a 100644 --- a/src/instance/tests/content/worlds.rs +++ b/src/instance/tests/content/worlds.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::io::Write; use flate2::{Compression, write::GzEncoder}; diff --git a/src/instance/tests/desktop.rs b/src/instance/tests/desktop.rs index 9c97869..7c8924b 100644 --- a/src/instance/tests/desktop.rs +++ b/src/instance/tests/desktop.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/import/curseforge.rs b/src/instance/tests/import/curseforge.rs index f4eaf4a..2a3f459 100644 --- a/src/instance/tests/import/curseforge.rs +++ b/src/instance/tests/import/curseforge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/import/format_detection.rs b/src/instance/tests/import/format_detection.rs index 99a6af9..4f49a79 100644 --- a/src/instance/tests/import/format_detection.rs +++ b/src/instance/tests/import/format_detection.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use std::io::Write; diff --git a/src/instance/tests/import/mmc.rs b/src/instance/tests/import/mmc.rs index f5b4d74..90e71c2 100644 --- a/src/instance/tests/import/mmc.rs +++ b/src/instance/tests/import/mmc.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/launch/parser.rs b/src/instance/tests/launch/parser.rs index bcea19f..d82c1f6 100644 --- a/src/instance/tests/launch/parser.rs +++ b/src/instance/tests/launch/parser.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; fn parse_all(lines: &[(LogStream, &str)]) -> Vec { diff --git a/src/instance/tests/launch/patches.rs b/src/instance/tests/launch/patches.rs index be9eb65..0bfa0fc 100644 --- a/src/instance/tests/launch/patches.rs +++ b/src/instance/tests/launch/patches.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use std::io::Write; diff --git a/src/instance/tests/launch/pipeline.rs b/src/instance/tests/launch/pipeline.rs index 0ef3bc9..dc7c75f 100644 --- a/src/instance/tests/launch/pipeline.rs +++ b/src/instance/tests/launch/pipeline.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[rstest::rstest] diff --git a/src/instance/tests/loader/forge.rs b/src/instance/tests/loader/forge.rs index 36ecc09..14a1ed8 100644 --- a/src/instance/tests/loader/forge.rs +++ b/src/instance/tests/loader/forge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; // builds an in-memory zip in a tempdir with the given json as diff --git a/src/instance/tests/loader/installers.rs b/src/instance/tests/loader/installers.rs index 0da7912..013be9e 100644 --- a/src/instance/tests/loader/installers.rs +++ b/src/instance/tests/loader/installers.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; // the factory maps every ModLoader variant to its concrete installer. diff --git a/src/instance/tests/loader/maven.rs b/src/instance/tests/loader/maven.rs index 8ee237d..1074972 100644 --- a/src/instance/tests/loader/maven.rs +++ b/src/instance/tests/loader/maven.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/instance/tests/loader/vanilla.rs b/src/instance/tests/loader/vanilla.rs index b9b7d11..6539d25 100644 --- a/src/instance/tests/loader/vanilla.rs +++ b/src/instance/tests/loader/vanilla.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::net::mojang::{LatestVersions, VersionEntry, VersionManifest}; diff --git a/src/instance/tests/logs/live.rs b/src/instance/tests/logs/live.rs index 9429b3c..4eb491c 100644 --- a/src/instance/tests/logs/live.rs +++ b/src/instance/tests/logs/live.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/launch_profile/mod.rs b/src/launch_profile/mod.rs index 3e5cbde..6e3bdf1 100644 --- a/src/launch_profile/mod.rs +++ b/src/launch_profile/mod.rs @@ -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 // profiles. consumed by the vanilla launcher and the loader install paths // (forge/neoforge/fabric/quilt) - anything that reads a mojang-style diff --git a/src/launch_profile/model.rs b/src/launch_profile/model.rs index 94df4b7..f30d35c 100644 --- a/src/launch_profile/model.rs +++ b/src/launch_profile/model.rs @@ -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 // used by vanilla versions, forge installer output, neoforge installer // output, fabric profiles, and quilt profiles. parsing is lossless for diff --git a/src/launch_profile/render.rs b/src/launch_profile/render.rs index 9cfa0d3..0c11b83 100644 --- a/src/launch_profile/render.rs +++ b/src/launch_profile/render.rs @@ -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 // and the game. resolves conditional argument shapes (`{rules, value}`), // filters them through the rule evaluator, and substitutes mojang template diff --git a/src/launch_profile/resolve.rs b/src/launch_profile/resolve.rs index d325b1f..b53d34a 100644 --- a/src/launch_profile/resolve.rs +++ b/src/launch_profile/resolve.rs @@ -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 // version JSON allows a profile to inherit from another profile by id; the // loaders (forge / neoforge / fabric / quilt) use this to layer their diff --git a/src/launch_profile/rules.rs b/src/launch_profile/rules.rs index 3fe77c7..1c7ebe7 100644 --- a/src/launch_profile/rules.rs +++ b/src/launch_profile/rules.rs @@ -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 // carry conditional rules that filter them by OS, architecture, or feature // flags. this module is the single source of truth for that semantics - diff --git a/src/launch_profile/system.rs b/src/launch_profile/system.rs index f41da61..a8661ef 100644 --- a/src/launch_profile/system.rs +++ b/src/launch_profile/system.rs @@ -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 // 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 diff --git a/src/launch_profile/templates.rs b/src/launch_profile/templates.rs index 6b43aff..d3353c2 100644 --- a/src/launch_profile/templates.rs +++ b/src/launch_profile/templates.rs @@ -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 // `${variable_name}` placeholders that the launcher fills in at launch // time from the active session: paths, the user's account info, the diff --git a/src/launch_profile/tests/model.rs b/src/launch_profile/tests/model.rs index 20769c4..1c98571 100644 --- a/src/launch_profile/tests/model.rs +++ b/src/launch_profile/tests/model.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::launch_profile::rules::RuleAction; diff --git a/src/launch_profile/tests/render.rs b/src/launch_profile/tests/render.rs index 0533774..3a24e52 100644 --- a/src/launch_profile/tests/render.rs +++ b/src/launch_profile/tests/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::launch_profile::model::Arguments; use crate::launch_profile::rules::{FeatureSet, OsCondition, Rule, RuleAction}; diff --git a/src/launch_profile/tests/resolve.rs b/src/launch_profile/tests/resolve.rs index 40d3a26..f3bd408 100644 --- a/src/launch_profile/tests/resolve.rs +++ b/src/launch_profile/tests/resolve.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::launch_profile::model::{Argument, ArgumentValue, AssetIndex, JavaVersion, Library}; use crate::launch_profile::rules::{Rule, RuleAction}; diff --git a/src/launch_profile/tests/rules.rs b/src/launch_profile/tests/rules.rs index db703ef..7b10337 100644 --- a/src/launch_profile/tests/rules.rs +++ b/src/launch_profile/tests/rules.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; fn linux_ctx<'a>(features: &'a FeatureSet) -> RuleContext<'a> { diff --git a/src/launch_profile/tests/templates.rs b/src/launch_profile/tests/templates.rs index 447196a..ae80610 100644 --- a/src/launch_profile/tests/templates.rs +++ b/src/launch_profile/tests/templates.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use std::path::PathBuf; diff --git a/src/layout_migration.rs b/src/layout_migration.rs index dacf891..826a1e3 100644 --- a/src/layout_migration.rs +++ b/src/layout_migration.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::fs; use std::io; use std::path::{Path, PathBuf}; diff --git a/src/lib.rs b/src/lib.rs index 8a1f5e2..958e8f7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // crate root. main.rs is a thin wrapper that imports the two entry points // re-exported below; everything else stays crate-private. integration tests // in tests/ that need to reach in deeper can use `rmcl::auth`, `rmcl::net`, diff --git a/src/main.rs b/src/main.rs index f10dc45..8b5b548 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + #[tokio::main] async fn main() { rmcl::migrate_legacy_rename(); diff --git a/src/net/curseforge.rs b/src/net/curseforge.rs index eecbb24..4e40875 100644 --- a/src/net/curseforge.rs +++ b/src/net/curseforge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // curseforge api client. responses are mapped into the same app-facing // project/version types used by discovery, so the tui stays provider-neutral. diff --git a/src/net/fabric.rs b/src/net/fabric.rs index d8211bc..d79d3b5 100644 --- a/src/net/fabric.rs +++ b/src/net/fabric.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // fabric mod loader: fetches loader metadata and downloads libraries // from fabric's maven. structurally very similar to quilt (they forked). diff --git a/src/net/forge.rs b/src/net/forge.rs index 8edeb02..b7ef25f 100644 --- a/src/net/forge.rs +++ b/src/net/forge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // forge mod loader: version discovery via promotions API, download and // installation. modern forge runs a java installer, old forge (pre-1.13ish) // doesn't support headless install so we extract directly from the jar. diff --git a/src/net/mod.rs b/src/net/mod.rs index 56a8b7c..2561352 100644 --- a/src/net/mod.rs +++ b/src/net/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // networking layer: http client, file downloads, and shared utilities // for fetching game assets from mojang, mod loaders, and modrinth. diff --git a/src/net/neoforge.rs b/src/net/neoforge.rs index 334bda7..4fea7e3 100644 --- a/src/net/neoforge.rs +++ b/src/net/neoforge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // neoforge: the forge fork that broke away after 1.20.1. // uses a different versioning scheme where neoforge versions map to // minecraft versions by dropping the "1." prefix (e.g. MC 1.21 = NF 21.x). diff --git a/src/net/quilt.rs b/src/net/quilt.rs index a1eac82..6fed8f1 100644 --- a/src/net/quilt.rs +++ b/src/net/quilt.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // quilt mod loader: fabric fork with a nearly identical metadata API. // if you're getting deja vu reading this after fabric.rs, that's why. diff --git a/src/net/tests/curseforge.rs b/src/net/tests/curseforge.rs index d0a5f8e..935dca6 100644 --- a/src/net/tests/curseforge.rs +++ b/src/net/tests/curseforge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/net/tests/modrinth.rs b/src/net/tests/modrinth.rs index 9685349..6a07517 100644 --- a/src/net/tests/modrinth.rs +++ b/src/net/tests/modrinth.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; fn version_with_files(files: Vec) -> VersionInfo { diff --git a/src/net/tests/neoforge.rs b/src/net/tests/neoforge.rs index c3d078d..a9aab3b 100644 --- a/src/net/tests/neoforge.rs +++ b/src/net/tests/neoforge.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/storage.rs b/src/storage.rs index 38352cd..81b42d3 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::io; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicU64, Ordering}; diff --git a/src/tests/layout_migration.rs b/src/tests/layout_migration.rs index 4e097b0..ff54e72 100644 --- a/src/tests/layout_migration.rs +++ b/src/tests/layout_migration.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/tests/migrate.rs b/src/tests/migrate.rs index ffce813..a09c481 100644 --- a/src/tests/migrate.rs +++ b/src/tests/migrate.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/tests/mod.rs b/src/tests/mod.rs index 4250d35..e4475a1 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::sync::Mutex; pub(crate) static TEST_LOCK: Mutex<()> = Mutex::new(()); diff --git a/src/tests/storage.rs b/src/tests/storage.rs index 8f02ab0..ae50dc3 100644 --- a/src/tests/storage.rs +++ b/src/tests/storage.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/time.rs b/src/time.rs index 26afa79..9262f2a 100644 --- a/src/time.rs +++ b/src/time.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use chrono::{DateTime, Utc}; // Rough human-friendly time delta. "2 months ago" is close enough when months diff --git a/src/tui/app.rs b/src/tui/app.rs index bd81595..f25793b 100644 --- a/src/tui/app.rs +++ b/src/tui/app.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // app state: holds everything the TUI needs between frames. // this is basically the "god struct" of the UI. not ideal, but ratatui // kinda pushes you into this pattern since you need mutable access diff --git a/src/tui/event.rs b/src/tui/event.rs index 01cfba0..b1d06f9 100644 --- a/src/tui/event.rs +++ b/src/tui/event.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use color_eyre::eyre::Context; use crossterm::event::{self, Event}; use ratatui::{ diff --git a/src/tui/logging.rs b/src/tui/logging.rs index 02d806b..cc968ed 100644 --- a/src/tui/logging.rs +++ b/src/tui/logging.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // sets up the tracing subscriber stack: file logging, tui-logger widget, and // our custom StatusLayer that feeds WARN/ERROR events into the error toast system. // also keeps an in-memory ring buffer of log lines for the log overlay viewer. diff --git a/src/tui/mod.rs b/src/tui/mod.rs index 644a0a8..ac1bb29 100644 --- a/src/tui/mod.rs +++ b/src/tui/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // tui entrypoint: sets up the terminal, runs the app, cleans up on exit. pub mod app; diff --git a/src/tui/render.rs b/src/tui/render.rs index e200a5b..44db0a8 100644 --- a/src/tui/render.rs +++ b/src/tui/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // layout and rendering. the main frame is split into: // left 20%: instance sidebar // right 80%: title bar + content area + bottom bar (account / details / status) diff --git a/src/tui/tests/event.rs b/src/tui/tests/event.rs index 76988ef..377157c 100644 --- a/src/tui/tests/event.rs +++ b/src/tui/tests/event.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::tui::tests::harness::UiHarness; diff --git a/src/tui/tests/flows.rs b/src/tui/tests/flows.rs index 0b99afb..d9d82d4 100644 --- a/src/tui/tests/flows.rs +++ b/src/tui/tests/flows.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use crossterm::event::{KeyCode, MouseEventKind}; use std::path::{Path, PathBuf}; diff --git a/src/tui/tests/harness.rs b/src/tui/tests/harness.rs index 5ce2979..227914c 100644 --- a/src/tui/tests/harness.rs +++ b/src/tui/tests/harness.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::{HashMap, HashSet}; use crossterm::event::{KeyCode, KeyEvent, KeyModifiers, MouseEvent, MouseEventKind}; diff --git a/src/tui/tests/logging.rs b/src/tui/tests/logging.rs index 3fd1856..197b977 100644 --- a/src/tui/tests/logging.rs +++ b/src/tui/tests/logging.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/tui/tests/mod.rs b/src/tui/tests/mod.rs index 9f53416..246a5af 100644 --- a/src/tui/tests/mod.rs +++ b/src/tui/tests/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + mod flows; pub(super) mod harness; mod snapshots; diff --git a/src/tui/tests/snapshots.rs b/src/tui/tests/snapshots.rs index 3220624..a5a4794 100644 --- a/src/tui/tests/snapshots.rs +++ b/src/tui/tests/snapshots.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::harness::UiHarness; use crate::instance::ProviderProject; use crate::tui::app::ProviderConflictState; diff --git a/src/tui/tests/widgets/account.rs b/src/tui/tests/widgets/account.rs index 5518ad3..aeee22e 100644 --- a/src/tui/tests/widgets/account.rs +++ b/src/tui/tests/widgets/account.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; use ratatui::{Terminal, backend::TestBackend}; diff --git a/src/tui/tests/widgets/content/discovery.rs b/src/tui/tests/widgets/content/discovery.rs index 3c3955d..3869577 100644 --- a/src/tui/tests/widgets/content/discovery.rs +++ b/src/tui/tests/widgets/content/discovery.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::tests::TEST_LOCK; use chrono::Utc; diff --git a/src/tui/tests/widgets/content/list.rs b/src/tui/tests/widgets/content/list.rs index 21c3098..aef650e 100644 --- a/src/tui/tests/widgets/content/list.rs +++ b/src/tui/tests/widgets/content/list.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::{ collections::{HashMap, HashSet}, path::PathBuf, diff --git a/src/tui/tests/widgets/content/tabs.rs b/src/tui/tests/widgets/content/tabs.rs index dc2ed33..02512c2 100644 --- a/src/tui/tests/widgets/content/tabs.rs +++ b/src/tui/tests/widgets/content/tabs.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/tui/tests/widgets/content/update.rs b/src/tui/tests/widgets/content/update.rs index 1e24320..960c8b8 100644 --- a/src/tui/tests/widgets/content/update.rs +++ b/src/tui/tests/widgets/content/update.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::path::PathBuf; use ratatui::{Terminal, backend::TestBackend}; diff --git a/src/tui/tests/widgets/instances.rs b/src/tui/tests/widgets/instances.rs index a37d304..f680f4d 100644 --- a/src/tui/tests/widgets/instances.rs +++ b/src/tui/tests/widgets/instances.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/tui/tests/widgets/logs_viewer.rs b/src/tui/tests/widgets/logs_viewer.rs index e8b2412..179c39a 100644 --- a/src/tui/tests/widgets/logs_viewer.rs +++ b/src/tui/tests/widgets/logs_viewer.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; use super::*; diff --git a/src/tui/tests/widgets/markdown.rs b/src/tui/tests/widgets/markdown.rs index b7d40ff..ac13d31 100644 --- a/src/tui/tests/widgets/markdown.rs +++ b/src/tui/tests/widgets/markdown.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use ratatui::{Terminal, backend::TestBackend}; fn formatted_text(source: &str, width: u16) -> ratatui::text::Text<'static> { diff --git a/src/tui/tests/widgets/popups/base.rs b/src/tui/tests/widgets/popups/base.rs index 860e942..e438a10 100644 --- a/src/tui/tests/widgets/popups/base.rs +++ b/src/tui/tests/widgets/popups/base.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::num::NonZeroU16; use super::*; diff --git a/src/tui/tests/widgets/popups/error/area.rs b/src/tui/tests/widgets/popups/error/area.rs index ed4a365..dd40919 100644 --- a/src/tui/tests/widgets/popups/error/area.rs +++ b/src/tui/tests/widgets/popups/error/area.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::popup_area; use crate::config::SETTINGS; use ratatui::layout::Rect; diff --git a/src/tui/tests/widgets/popups/error/render.rs b/src/tui/tests/widgets/popups/error/render.rs index 1abc40b..c32878a 100644 --- a/src/tui/tests/widgets/popups/error/render.rs +++ b/src/tui/tests/widgets/popups/error/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use ratatui::Terminal; use ratatui::backend::TestBackend; diff --git a/src/tui/tests/widgets/popups/import_modpack/render.rs b/src/tui/tests/widgets/popups/import_modpack/render.rs index 51431ca..ca95a6e 100644 --- a/src/tui/tests/widgets/popups/import_modpack/render.rs +++ b/src/tui/tests/widgets/popups/import_modpack/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::tests::TEST_LOCK; use ratatui::Terminal; diff --git a/src/tui/tests/widgets/popups/import_modpack/state.rs b/src/tui/tests/widgets/popups/import_modpack/state.rs index d170078..654c5a7 100644 --- a/src/tui/tests/widgets/popups/import_modpack/state.rs +++ b/src/tui/tests/widgets/popups/import_modpack/state.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::path::PathBuf; use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; diff --git a/src/tui/tests/widgets/popups/import_modpack/support.rs b/src/tui/tests/widgets/popups/import_modpack/support.rs index 266c581..a621647 100644 --- a/src/tui/tests/widgets/popups/import_modpack/support.rs +++ b/src/tui/tests/widgets/popups/import_modpack/support.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::state; pub(crate) fn reset() { diff --git a/src/tui/tests/widgets/popups/mod.rs b/src/tui/tests/widgets/popups/mod.rs index cb759c4..37d9167 100644 --- a/src/tui/tests/widgets/popups/mod.rs +++ b/src/tui/tests/widgets/popups/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::{ confirm::{ConfirmTarget, confirm_popup_area}, keybind_line_fitted, word_wrap_size, diff --git a/src/tui/tests/widgets/popups/new_instance/render.rs b/src/tui/tests/widgets/popups/new_instance/render.rs index 627399e..c27225f 100644 --- a/src/tui/tests/widgets/popups/new_instance/render.rs +++ b/src/tui/tests/widgets/popups/new_instance/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crate::tests::TEST_LOCK; use ratatui::Terminal; diff --git a/src/tui/tests/widgets/popups/new_instance/state.rs b/src/tui/tests/widgets/popups/new_instance/state.rs index 4af2ff5..71e415e 100644 --- a/src/tui/tests/widgets/popups/new_instance/state.rs +++ b/src/tui/tests/widgets/popups/new_instance/state.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; use tui_prompts::{State as PromptState, TextState}; diff --git a/src/tui/tests/widgets/popups/new_instance/support.rs b/src/tui/tests/widgets/popups/new_instance/support.rs index caa25d1..45f5df5 100644 --- a/src/tui/tests/widgets/popups/new_instance/support.rs +++ b/src/tui/tests/widgets/popups/new_instance/support.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::state; pub(crate) fn reset() { diff --git a/src/tui/tests/widgets/screenshots_grid.rs b/src/tui/tests/widgets/screenshots_grid.rs index f0e9b1f..e914771 100644 --- a/src/tui/tests/widgets/screenshots_grid.rs +++ b/src/tui/tests/widgets/screenshots_grid.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; use ratatui::{Terminal, backend::TestBackend}; diff --git a/src/tui/tests/widgets/search.rs b/src/tui/tests/widgets/search.rs index 2f5265e..eea224b 100644 --- a/src/tui/tests/widgets/search.rs +++ b/src/tui/tests/widgets/search.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; use crossterm::event::KeyModifiers; diff --git a/src/tui/tests/widgets/settings.rs b/src/tui/tests/widgets/settings.rs index 1027bf3..4bac7f5 100644 --- a/src/tui/tests/widgets/settings.rs +++ b/src/tui/tests/widgets/settings.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use super::*; #[test] diff --git a/src/tui/widgets/account.rs b/src/tui/widgets/account.rs index 15731c2..f569ca1 100644 --- a/src/tui/widgets/account.rs +++ b/src/tui/widgets/account.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // account management panel: list, add (microsoft/offline), delete // microsoft auth uses the device code flow, so it polls a shared mutex // for the result while showing the user a code to enter in their browser diff --git a/src/tui/widgets/content/discovery.rs b/src/tui/widgets/content/discovery.rs index 30609af..86f7fd4 100644 --- a/src/tui/widgets/content/discovery.rs +++ b/src/tui/widgets/content/discovery.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::path::PathBuf; use std::sync::{Arc, Mutex}; diff --git a/src/tui/widgets/content/list.rs b/src/tui/widgets/content/list.rs index 26d246a..c9b6e70 100644 --- a/src/tui/widgets/content/list.rs +++ b/src/tui/widgets/content/list.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // generic scrollable list for content items (mods, resource packs, shaders, worlds). // supports toggling items on/off by renaming files with .disabled suffix, // search filtering, per-instance caching, and directory change detection. diff --git a/src/tui/widgets/content/mod.rs b/src/tui/widgets/content/mod.rs index 5cdf211..d580c42 100644 --- a/src/tui/widgets/content/mod.rs +++ b/src/tui/widgets/content/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // the tabbed content area: mods, resource packs, shaders, screenshots, worlds, logs pub mod discovery; diff --git a/src/tui/widgets/content/tabs.rs b/src/tui/widgets/content/tabs.rs index 7222bb4..87ba426 100644 --- a/src/tui/widgets/content/tabs.rs +++ b/src/tui/widgets/content/tabs.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // the outer frame for the content area: tab bar, keybind footer, // and dispatching render calls to the active tab's widget. // also renders the instance name/version header with run state indicators. diff --git a/src/tui/widgets/content/update.rs b/src/tui/widgets/content/update.rs index 811ed19..e77ed45 100644 --- a/src/tui/widgets/content/update.rs +++ b/src/tui/widgets/content/update.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::HashMap; use std::path::{Path, PathBuf}; use std::sync::{Arc, Mutex}; diff --git a/src/tui/widgets/instances.rs b/src/tui/widgets/instances.rs index abfc552..7b73a22 100644 --- a/src/tui/widgets/instances.rs +++ b/src/tui/widgets/instances.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // the instance list on the left side of the UI. // handles search/filter, scrollbar sync, and inline renaming. // each row shows instance name + "last played" or current run state. diff --git a/src/tui/widgets/logs_viewer.rs b/src/tui/widgets/logs_viewer.rs index 0887fae..ab64426 100644 --- a/src/tui/widgets/logs_viewer.rs +++ b/src/tui/widgets/logs_viewer.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // split-pane log viewer: file list on the left, log content on the right. // supports live log tailing when the instance is running, plus search // filtering in both the file list and the viewer pane. diff --git a/src/tui/widgets/markdown.rs b/src/tui/widgets/markdown.rs index 4070e5d..47f043a 100644 --- a/src/tui/widgets/markdown.rs +++ b/src/tui/widgets/markdown.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::HashMap; use std::ops::Range; use std::sync::{Arc, Mutex}; diff --git a/src/tui/widgets/mod.rs b/src/tui/widgets/mod.rs index c456866..99f4a19 100644 --- a/src/tui/widgets/mod.rs +++ b/src/tui/widgets/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // shared widget utilities and the trait all key-handling widgets implement use crate::config::theme::THEME; diff --git a/src/tui/widgets/popups/base.rs b/src/tui/widgets/popups/base.rs index 4c95563..64b3389 100644 --- a/src/tui/widgets/popups/base.rs +++ b/src/tui/widgets/popups/base.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // base frame that all popups render inside. handles the border, title bar, // keybind footer, and optional search indicator. content is injected via closure // so each popup type only worries about its inner area. diff --git a/src/tui/widgets/popups/confirm.rs b/src/tui/widgets/popups/confirm.rs index bf08241..93d1a7f 100644 --- a/src/tui/widgets/popups/confirm.rs +++ b/src/tui/widgets/popups/confirm.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // "are you sure?" popup for destructive actions. uses global state so the // confirmation target persists across render frames. diff --git a/src/tui/widgets/popups/error.rs b/src/tui/widgets/popups/error.rs index b38e9c2..33e0283 100644 --- a/src/tui/widgets/popups/error.rs +++ b/src/tui/widgets/popups/error.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // toast-style error/warning popup that auto-dismisses after a timeout. // stacks in the top-right corner; border color changes based on severity. diff --git a/src/tui/widgets/popups/import_modpack/mod.rs b/src/tui/widgets/popups/import_modpack/mod.rs index 7600c23..5cca01e 100644 --- a/src/tui/widgets/popups/import_modpack/mod.rs +++ b/src/tui/widgets/popups/import_modpack/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + mod render; mod state; diff --git a/src/tui/widgets/popups/import_modpack/render.rs b/src/tui/widgets/popups/import_modpack/render.rs index 1726ce7..dae50db 100644 --- a/src/tui/widgets/popups/import_modpack/render.rs +++ b/src/tui/widgets/popups/import_modpack/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // rendering for the modpack import wizard. same pattern as new_instance: // snapshot the state, pick the right step renderer, done. diff --git a/src/tui/widgets/popups/import_modpack/state.rs b/src/tui/widgets/popups/import_modpack/state.rs index 86de361..72b00c3 100644 --- a/src/tui/widgets/popups/import_modpack/state.rs +++ b/src/tui/widgets/popups/import_modpack/state.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // state machine for the modpack import wizard. // browses modpacks from configured providers and keeps the archive import flow // for modrinth URLs, project slugs, version IDs, and local pack archives. diff --git a/src/tui/widgets/popups/load_state.rs b/src/tui/widgets/popups/load_state.rs index 66179fc..7684ddd 100644 --- a/src/tui/widgets/popups/load_state.rs +++ b/src/tui/widgets/popups/load_state.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + #[derive(Debug, Clone, Default)] pub enum LoadState { #[default] diff --git a/src/tui/widgets/popups/mod.rs b/src/tui/widgets/popups/mod.rs index b3c8836..10f2794 100644 --- a/src/tui/widgets/popups/mod.rs +++ b/src/tui/widgets/popups/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // shared utilities for popup widgets: layout helpers, word wrapping, keybind rendering. // individual popup types live in their own submodules. diff --git a/src/tui/widgets/popups/modpack_update.rs b/src/tui/widgets/popups/modpack_update.rs index 29e1f8f..226fb17 100644 --- a/src/tui/widgets/popups/modpack_update.rs +++ b/src/tui/widgets/popups/modpack_update.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + use std::collections::HashSet; use std::path::PathBuf; use std::sync::{Arc, Mutex}; diff --git a/src/tui/widgets/popups/new_instance/mod.rs b/src/tui/widgets/popups/new_instance/mod.rs index a3ac1fa..677f19b 100644 --- a/src/tui/widgets/popups/new_instance/mod.rs +++ b/src/tui/widgets/popups/new_instance/mod.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + mod render; mod state; diff --git a/src/tui/widgets/popups/new_instance/render.rs b/src/tui/widgets/popups/new_instance/render.rs index 16de9bc..a3a1c64 100644 --- a/src/tui/widgets/popups/new_instance/render.rs +++ b/src/tui/widgets/popups/new_instance/render.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // rendering for the new instance wizard. each step gets its own render fn // and the popup resizes itself based on which step is active. diff --git a/src/tui/widgets/popups/new_instance/state.rs b/src/tui/widgets/popups/new_instance/state.rs index a44ba9e..098a558 100644 --- a/src/tui/widgets/popups/new_instance/state.rs +++ b/src/tui/widgets/popups/new_instance/state.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // state machine and input handling for the new instance wizard. // flow: Name -> Loader -> Version -> LoaderVersion -> Confirm // version lists are fetched lazily from the network when you reach that step. diff --git a/src/tui/widgets/screenshots_grid.rs b/src/tui/widgets/screenshots_grid.rs index 4af8879..4d6bba4 100644 --- a/src/tui/widgets/screenshots_grid.rs +++ b/src/tui/widgets/screenshots_grid.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // responsive grid of screenshot thumbnails rendered directly in the terminal. // images load lazily on background threads as they scroll into view, // and get converted to terminal graphics via ratatui-image protocols. diff --git a/src/tui/widgets/search.rs b/src/tui/widgets/search.rs index 52a750d..edc9459 100644 --- a/src/tui/widgets/search.rs +++ b/src/tui/widgets/search.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // reusable incremental search state used across multiple widgets. // handles case-insensitive filtering and inline match highlighting. diff --git a/src/tui/widgets/settings.rs b/src/tui/widgets/settings.rs index 38e017d..a477330 100644 --- a/src/tui/widgets/settings.rs +++ b/src/tui/widgets/settings.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // settings panel: manages config profiles and shows compact instance info. // also provides keybinds to open config files in $EDITOR. diff --git a/src/tui/widgets/status.rs b/src/tui/widgets/status.rs index 50f9126..841d874 100644 --- a/src/tui/widgets/status.rs +++ b/src/tui/widgets/status.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // the "overview" panel showing download/install progress. // shows a gauge when the total is known, or a spinner when it's not. diff --git a/tests/content_scanners.rs b/tests/content_scanners.rs index e3dae04..71ed055 100644 --- a/tests/content_scanners.rs +++ b/tests/content_scanners.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // integration tests for the public content-scanner APIs: shaders, worlds, // and resource packs. each scanner walks an instance's minecraft subdir // and returns ContentEntry rows; shape varies slightly per content type diff --git a/tests/launch_pipeline.rs b/tests/launch_pipeline.rs index b93f853..0414522 100644 --- a/tests/launch_pipeline.rs +++ b/tests/launch_pipeline.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // integration tests for build_launch_invocation - the seam that takes an // instance config plus resolved auth credentials and returns the full java // invocation that would be spawned. these tests build the expected on-disk diff --git a/tests/live_apis.rs b/tests/live_apis.rs index 4655954..2b123e5 100644 --- a/tests/live_apis.rs +++ b/tests/live_apis.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + //! Release-gate smoke tests for live upstream APIs. //! //! These are intentionally ignored during normal test runs. The release diff --git a/tests/log_files.rs b/tests/log_files.rs index 0aa0739..b0ee3ef 100644 --- a/tests/log_files.rs +++ b/tests/log_files.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // integration tests for the public log files API. // these tests touch the filesystem and exercise the module as an external // consumer would. diff --git a/tests/net_loaders.rs b/tests/net_loaders.rs index 724445d..ac3383c 100644 --- a/tests/net_loaders.rs +++ b/tests/net_loaders.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // integration tests for the loader-specific net::* fetchers (forge, // fabric, quilt, neoforge). each module's fetch_* function now has a // _from variant that lets the test point the HTTP call at a wiremock diff --git a/tests/net_retry.rs b/tests/net_retry.rs index 0d70804..148c706 100644 --- a/tests/net_retry.rs +++ b/tests/net_retry.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // integration tests for the retry envelope in src/net/mod.rs. wiremock // stands in for live upstream APIs so we can assert that 5xx responses // retry, 4xx responses fail fast, and the cap (MAX_RETRIES = 3, total diff --git a/tests/screenshots.rs b/tests/screenshots.rs index 5b9cd12..8235a20 100644 --- a/tests/screenshots.rs +++ b/tests/screenshots.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 Constantin Bauer +// SPDX-License-Identifier: GPL-3.0-only + // integration tests for the public scan_screenshots API. use std::path::{Path, PathBuf};