[core] API: compiling Seam 1 skeleton (types, signatures, stubs)

This commit is contained in:
2026-11-22 22:58:26 +01:00
parent 8f2bf986af
commit 5c17aac8d4
19 changed files with 1084 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
// 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/.
//! Epic Games Launcher: one JSON `.item` manifest per installed app in
//! `%ProgramData%\Epic\EpicGamesLauncher\Data\Manifests`. Launch is
//! `com.epicgames.launcher://apps/<AppName>?action=launch&silent=true`.
use crate::error::ParseError;
use crate::model::Game;
/// The game described by one `.item` manifest. Reads `AppName`, `DisplayName` and `InstallLocation` (all
/// required strings) and `MainGameAppName` (optional; when it names another app the file is an add-on and gives
/// [`ParseError::NotAGame`]). Other fields are ignored but must still be well-formed JSON within the caps.
pub fn item(json: &[u8]) -> Result<Game, ParseError> {
let _ = json;
Err(ParseError::Syntax { at: 0 })
}