Initial commit
Rust workspace for VIctory: PE analysis, loader, HLE skeleton, DXBC/DXIL parsing with a GFX10 decoder, conversion cache, CLI and asset-policy enforcement. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
commit
f4504f6413
69 files changed
+7952
No files matched your search
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "victory-game"
|
||||
description = "Everything specific to Grand Theft Auto VI: its containers, build identities, patches."
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -0,0 +1,23 @@
|
||||
//! 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))
|
||||
}
|
||||
Reference in new issue
Block a user