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

83 lines
1.8 KiB
Rust
Raw Normal View History

2026-11-23 01:15:26 +01:00
//! Implementations, one module per area of the console API.
//!
//! Adding an API: write an `extern "system"` function named exactly like
//! the import, then list it with `hle_export!` in the module's `module()`.
//! Run `victory census` over your titles to see what is still missing.
//!
//! Planned areas (driven by census results, not by completeness):
//! `file` (package paths), `thread` (TLS callbacks for title threads),
//! `xaudio2`, `xstore` stubs.
2026-11-23 01:15:26 +01:00
#[cfg(windows)]
pub mod apu;
pub mod audio;
pub mod bink;
pub mod d3d12x;
pub mod display;
pub mod dsp;
#[cfg(windows)]
pub mod dstorage;
#[cfg(windows)]
pub mod fidelityfx;
#[cfg(windows)]
pub mod files;
#[cfg(windows)]
pub mod affinity;
pub mod gameinput;
2026-11-23 01:15:26 +01:00
pub mod kernel;
#[cfg(windows)]
pub mod lifecycle;
#[cfg(windows)]
pub mod media;
#[cfg(windows)]
pub mod net;
2026-11-24 09:34:18 +01:00
pub mod rpcrt4;
pub mod speech;
pub mod storage;
pub mod xasync;
pub mod xg;
pub mod xgame;
2026-11-23 01:15:26 +01:00
pub mod xgameruntime;
pub mod xgamesave;
pub mod xgameui;
#[cfg(windows)]
pub mod xmem;
pub mod xnetworking;
pub mod xpackage;
pub mod xstore;
pub mod xsystem;
pub mod xuser;
2026-11-23 01:15:26 +01:00
use crate::HleModule;
pub(crate) fn all() -> Vec<HleModule> {
let mut all = vec![
kernel::module(),
xgameruntime::module(),
gameinput::module(),
d3d12x::module(),
audio::module(),
dsp::module(),
xg::module(),
];
#[cfg(windows)]
all.push(apu::module());
#[cfg(windows)]
all.push(media::module());
#[cfg(windows)]
all.push(dstorage::module());
#[cfg(windows)]
all.push(files::module());
#[cfg(windows)]
all.push(lifecycle::module());
#[cfg(windows)]
all.push(net::module());
2026-11-24 09:34:18 +01:00
all.push(rpcrt4::module());
#[cfg(windows)]
all.push(xmem::module());
#[cfg(windows)]
all.push(affinity::module());
#[cfg(windows)]
all.push(xsystem::module());
all
2026-11-23 01:15:26 +01:00
}