[repo] Licence: CPAL-1.0 (Mark, 2026-11-23), Exhibit B credit in README, SPDX headers, version 0.1.1

This commit is contained in:
2026-11-23 00:14:14 +01:00
parent 0ac5223086
commit b3d5291bb1
28 changed files with 207 additions and 421 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Domi games: Atrium registry entries with `kind = "game"`, launched through their `domi-<app>://open` link, or
//! web games (Rosea, Moin) opened by URL.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Epic Games Launcher: one JSON `.item` manifest per installed app in
//! `%ProgramData%\Epic\EpicGamesLauncher\Data\Manifests`. Launch is
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
use std::fmt;
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! GOG: the app reads one registry key per installed game (assumption, verify on the PC:
//! `HKLM\SOFTWARE\WOW6432Node\GOG.com\Games\<gameID>` with the values `gameID`, `gameName`, `path`, `exe`,
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
use crate::error::ParseError;
use crate::limits::{MAX_GAME_ID, MAX_GOG_ID};
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
use crate::error::ParseError;
use crate::limits::{MAX_ARG, MAX_ARGS, MAX_ARGS_LINE, MAX_HOST, MAX_URL};
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! The pure core of Arena Domi: strict parsers for game launcher files and the game library model.
//!
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Every cap the parsers enforce. Anything over a cap is refused, never truncated. `docs/FORMATS.md` lists them
//! with the error each one gives.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! A game the user added by picking its `.exe`.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
use crate::error::ParseError;
use crate::id::{GameId, Source};
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
use crate::error::ParseError;
use crate::limits::MAX_PATH;
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Steam: `config/libraryfolders.vdf` lists the library folders; each installed app has
//! `<library>/steamapps/appmanifest_<id>.acf`. Launch is `steam://rungameid/<id>`.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Small shared checks: titles, ids, numbers, a stable hash, the lettered cover.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! A strict tokenizer, parser and writer for Valve's KeyValues text format (VDF), as used by Steam's
//! `libraryfolders.vdf` and `appmanifest_<id>.acf`.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Epic `.item` manifests: valid fixtures and the hostile ones that are Epic-specific.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! GOG entries built from registry values the app passes in.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Hostile input across every parser: refused with a typed error, never a panic.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Launch strings contain only parsed, validated fields: nothing raw from a file reaches a URI or an argument.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Manual games (an `.exe` the user picked) and Domi games (Atrium registry entries).
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Dedupe and ordering in `merge`.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! `WinPath` and `GameId`: the two validated value types everything else is built from.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Steam: valid fixtures and the hostile ones that are Steam-specific.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! The VDF tokenizer, parser and writer on hand-written input.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Built on Domi, https://aula.marek-novak.cz
//! Property tests on the VDF tokenizer and parser: no panics on arbitrary bytes, and generated documents survive
//! a write/parse round trip.