Loader: map title-shipped DLLs, patch static TLS loads to slot 0, crash reporter, title paths for GetModuleFileName*. HLE: task queue and async, XUser (one offline user), system ids, title id, features, invites, game events, persistent local storage, GameInput with no devices, xmem, console audio hardware queues, life cycle (close suspends, then terminates), and a file layer with virtual drives rewritten in path-taking imports. GPU: D3D12.X device, DXGI chain, heaps, resources, fences, queues and command lists translated onto a host D3D12 device; clears, barriers, copies, resolves and PresentX into the title's window. Shaders: SGD5 reader and `victory translate`; SSA IR with node splitting for irreducible flow; structurisation removing EXEC. Co-Authored-By: Claude Opus 5.5 <[email protected]>
26 lines
902 B
Rust
26 lines
902 B
Rust
//! 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))
|
|
}
|