mod.rs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //! Implementations, one module per area of the console API.
  2. //!
  3. //! Adding an API: write an `extern "system"` function named exactly like
  4. //! the import, then list it with `hle_export!` in the module's `module()`.
  5. //! Run `victory census` over your titles to see what is still missing.
  6. //!
  7. //! Planned areas (driven by census results, not by completeness):
  8. //! `file` (package paths), `thread` (TLS callbacks for title threads),
  9. //! `xaudio2`, `xstore` stubs.
  10. #[cfg(windows)]
  11. pub mod apu;
  12. pub mod audio;
  13. pub mod d3d12x;
  14. pub mod display;
  15. pub mod dsp;
  16. #[cfg(windows)]
  17. pub mod dstorage;
  18. #[cfg(windows)]
  19. pub mod files;
  20. pub mod gameinput;
  21. pub mod kernel;
  22. #[cfg(windows)]
  23. pub mod lifecycle;
  24. #[cfg(windows)]
  25. pub mod media;
  26. #[cfg(windows)]
  27. pub mod net;
  28. pub mod rpcrt4;
  29. pub mod speech;
  30. pub mod storage;
  31. pub mod xasync;
  32. pub mod xg;
  33. pub mod xgame;
  34. pub mod xgameruntime;
  35. pub mod xgamesave;
  36. pub mod xgameui;
  37. #[cfg(windows)]
  38. pub mod xmem;
  39. pub mod xnetworking;
  40. pub mod xpackage;
  41. pub mod xstore;
  42. pub mod xsystem;
  43. pub mod xuser;
  44. use crate::HleModule;
  45. pub(crate) fn all() -> Vec<HleModule> {
  46. let mut all = vec![
  47. kernel::module(),
  48. xgameruntime::module(),
  49. gameinput::module(),
  50. d3d12x::module(),
  51. audio::module(),
  52. dsp::module(),
  53. xg::module(),
  54. ];
  55. #[cfg(windows)]
  56. all.push(apu::module());
  57. #[cfg(windows)]
  58. all.push(media::module());
  59. #[cfg(windows)]
  60. all.push(dstorage::module());
  61. #[cfg(windows)]
  62. all.push(files::module());
  63. #[cfg(windows)]
  64. all.push(lifecycle::module());
  65. #[cfg(windows)]
  66. all.push(net::module());
  67. all.push(rpcrt4::module());
  68. #[cfg(windows)]
  69. all.push(xmem::module());
  70. #[cfg(windows)]
  71. all.push(xsystem::module());
  72. all
  73. }