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):
|
2026-11-23 14:42:21 +01:00
|
|
|
//! `file` (package paths), `thread` (TLS callbacks for title threads),
|
|
|
|
|
//! `xaudio2`, `xstore` stubs.
|
2026-11-23 01:15:26 +01:00
|
|
|
|
2026-11-23 23:10:01 +01:00
|
|
|
#[cfg(windows)]
|
|
|
|
|
pub mod apu;
|
2026-11-23 14:42:21 +01:00
|
|
|
pub mod audio;
|
2026-11-26 23:15:46 -07:00
|
|
|
pub mod bink;
|
2026-11-23 14:42:21 +01:00
|
|
|
pub mod d3d12x;
|
2026-11-23 23:10:01 +01:00
|
|
|
pub mod display;
|
|
|
|
|
pub mod dsp;
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
pub mod dstorage;
|
2026-11-23 14:42:21 +01:00
|
|
|
#[cfg(windows)]
|
2026-11-26 20:22:58 +05:30
|
|
|
pub mod fidelityfx;
|
|
|
|
|
#[cfg(windows)]
|
2026-11-23 14:42:21 +01:00
|
|
|
pub mod files;
|
|
|
|
|
pub mod gameinput;
|
2026-11-23 01:15:26 +01:00
|
|
|
pub mod kernel;
|
2026-11-23 14:42:21 +01:00
|
|
|
#[cfg(windows)]
|
|
|
|
|
pub mod lifecycle;
|
2026-11-23 23:10:01 +01:00
|
|
|
#[cfg(windows)]
|
|
|
|
|
pub mod media;
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
pub mod net;
|
2026-11-24 09:34:18 +01:00
|
|
|
pub mod rpcrt4;
|
2026-11-23 23:10:01 +01:00
|
|
|
pub mod speech;
|
2026-11-23 14:42:21 +01:00
|
|
|
pub mod storage;
|
|
|
|
|
pub mod xasync;
|
2026-11-23 23:10:01 +01:00
|
|
|
pub mod xg;
|
2026-11-23 14:42:21 +01:00
|
|
|
pub mod xgame;
|
2026-11-23 01:15:26 +01:00
|
|
|
pub mod xgameruntime;
|
2026-11-23 23:10:01 +01:00
|
|
|
pub mod xgamesave;
|
|
|
|
|
pub mod xgameui;
|
2026-11-23 14:42:21 +01:00
|
|
|
#[cfg(windows)]
|
|
|
|
|
pub mod xmem;
|
2026-11-23 23:10:01 +01:00
|
|
|
pub mod xnetworking;
|
|
|
|
|
pub mod xpackage;
|
|
|
|
|
pub mod xstore;
|
2026-11-23 14:42:21 +01:00
|
|
|
pub mod xsystem;
|
|
|
|
|
pub mod xuser;
|
2026-11-23 01:15:26 +01:00
|
|
|
|
|
|
|
|
use crate::HleModule;
|
|
|
|
|
|
|
|
|
|
pub(crate) fn all() -> Vec<HleModule> {
|
2026-11-23 14:42:21 +01:00
|
|
|
let mut all = vec![
|
|
|
|
|
kernel::module(),
|
|
|
|
|
xgameruntime::module(),
|
|
|
|
|
gameinput::module(),
|
|
|
|
|
d3d12x::module(),
|
|
|
|
|
audio::module(),
|
2026-11-23 23:10:01 +01:00
|
|
|
dsp::module(),
|
|
|
|
|
xg::module(),
|
2026-11-23 14:42:21 +01:00
|
|
|
];
|
|
|
|
|
#[cfg(windows)]
|
2026-11-23 23:10:01 +01:00
|
|
|
all.push(apu::module());
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
all.push(media::module());
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
all.push(dstorage::module());
|
|
|
|
|
#[cfg(windows)]
|
2026-11-23 14:42:21 +01:00
|
|
|
all.push(files::module());
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
all.push(lifecycle::module());
|
|
|
|
|
#[cfg(windows)]
|
2026-11-23 23:10:01 +01:00
|
|
|
all.push(net::module());
|
2026-11-24 09:34:18 +01:00
|
|
|
all.push(rpcrt4::module());
|
2026-11-23 23:10:01 +01:00
|
|
|
#[cfg(windows)]
|
2026-11-23 14:42:21 +01:00
|
|
|
all.push(xmem::module());
|
2026-11-23 23:10:01 +01:00
|
|
|
#[cfg(windows)]
|
|
|
|
|
all.push(xsystem::module());
|
2026-11-23 14:42:21 +01:00
|
|
|
all
|
2026-11-23 01:15:26 +01:00
|
|
|
}
|