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:
MarvisandClaude Sonnet 5.5 committed 2026-11-23 01:15:26 +01:00
commit f4504f6413
69 files changed
+7952

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
//! Process-wide state the implementations need.
use std::sync::atomic::{AtomicUsize, Ordering};
static MAIN_IMAGE_BASE: AtomicUsize = AtomicUsize::new(0);
/// Records where the title's main image is mapped. The title expects
/// `GetModuleHandle(NULL)` and friends to return this, not our own exe.
pub fn set_main_image(base: usize) {
MAIN_IMAGE_BASE.store(base, Ordering::Release);
}
pub fn main_image() -> Option<usize> {
match MAIN_IMAGE_BASE.load(Ordering::Acquire) {
0 => None,
base => Some(base),
}
}