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]>
31 lines
831 B
Rust
31 lines
831 B
Rust
//! `xgameruntime.dll`: the console game runtime (XGame*, XUser*, XTaskQueue*...).
|
|
//!
|
|
//! The DLL names titles actually import these from are confirmed by running
|
|
//! `victory census` on real titles; extend `dlls` accordingly.
|
|
#![allow(non_snake_case)]
|
|
|
|
use crate::{HleModule, hle_export};
|
|
|
|
pub type HRESULT = i32;
|
|
pub const S_OK: HRESULT = 0;
|
|
|
|
pub extern "system" fn XGameRuntimeInitialize() -> HRESULT {
|
|
tracing::info!("XGameRuntimeInitialize");
|
|
S_OK
|
|
}
|
|
|
|
pub extern "system" fn XGameRuntimeUninitialize() {
|
|
tracing::info!("XGameRuntimeUninitialize");
|
|
}
|
|
|
|
pub(crate) fn module() -> HleModule {
|
|
HleModule {
|
|
name: "xgameruntime",
|
|
dlls: &["xgameruntime.dll"],
|
|
exports: vec![
|
|
hle_export!(XGameRuntimeInitialize),
|
|
hle_export!(XGameRuntimeUninitialize),
|
|
],
|
|
}
|
|
}
|