Files
6gbvram---16gb-ram/crates/victory-game/src/lib.rs
T
fxcelessandClaude Fable 5.2 29f9e89df6 The game is no longer named in the tree
Comments, documents and descriptions now say "the title". No code changes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 15:45:05 -05:00

26 lines
878 B
Rust

//! Everything specific to the title: its container formats, build
//! identities, and the hooks we place in its code (located by per-build
//! offsets or byte-pattern signatures). What may and may not be stored here
//! is defined in docs/asset-policy.md.
pub mod sgd5;
/// A specific build of the title executable we know how to run.
#[derive(Debug, Clone, Copy)]
pub struct KnownBuild {
/// Our own label, e.g. "1.0.0 retail".
pub label: &'static str,
/// BLAKE3 of the original executable, hex.
pub blake3: &'static str,
}
/// Builds we support. Empty until the executable is available.
pub const KNOWN_BUILDS: &[KnownBuild] = &[];
/// Looks up a build by the BLAKE3 hash of its executable.
pub fn identify(blake3_hex: &str) -> Option<&'static KnownBuild> {
KNOWN_BUILDS
.iter()
.find(|b| b.blake3.eq_ignore_ascii_case(blake3_hex))
}