| 12345678910111213141516171819202122232425 |
- //! 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.
- pub mod sgd5;
- /// 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))
- }
|