Files
6gbvram---16gb-ram/crates/victory-game/src/lib.rs
T

23 lines
887 B
Rust
Raw Normal View History

2026-11-23 01:15:26 +01:00
//! Everything specific to Grand Theft Auto VI: 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.
/// A specific build of the Grand Theft Auto VI 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))
}