Files
6gbvram---16gb-ram/crates/victory-hle/src/modules/xgameruntime.rs
T

30 lines
831 B
Rust
Raw Normal View History

2026-11-23 01:15:26 +01:00
//! `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),
],
}
}