Run Minecraft: runtime HLE, D3D12.X device on the host GPU, shader IR
Loader: map title-shipped DLLs, patch static TLS loads to slot 0, crash reporter, title paths for GetModuleFileName*. HLE: task queue and async, XUser (one offline user), system ids, title id, features, invites, game events, persistent local storage, GameInput with no devices, xmem, console audio hardware queues, life cycle (close suspends, then terminates), and a file layer with virtual drives rewritten in path-taking imports. GPU: D3D12.X device, DXGI chain, heaps, resources, fences, queues and command lists translated onto a host D3D12 device; clears, barriers, copies, resolves and PresentX into the title's window. Shaders: SGD5 reader and `victory translate`; SSA IR with node splitting for irreducible flow; structurisation removing EXEC. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
12caefe804
commit
754619f30e
61 files changed
+12775
-88
No files matched your search
@@ -11,25 +11,34 @@
|
||||
//! none of its code and resolves none of its imports;
|
||||
//! 2. load that copy as a real module (debuggers, profilers, crash dumps
|
||||
//! and stack walks all see it); this step is Windows-only;
|
||||
//! 3. bind every import ourselves through an [`ImportResolver`], our
|
||||
//! runtime (`victory-hle`) or the host, and route anything unresolved
|
||||
//! to a generated stub that reports exactly what was called;
|
||||
//! 4. run TLS callbacks and the entry point on a thread with the stack size
|
||||
//! the image asks for.
|
||||
//! 3. map the DLLs the title ships beside it the same way
|
||||
//! (`load_title_dlls`);
|
||||
//! 4. bind every import ourselves through an [`ImportResolver`], our
|
||||
//! runtime (`victory-hle`), the host or the title's DLLs, and route
|
||||
//! anything unresolved to a generated stub that reports exactly what
|
||||
//! was called;
|
||||
//! 5. initialise the title's DLLs, then run TLS callbacks and the entry
|
||||
//! point on a thread with the stack size the image asks for.
|
||||
|
||||
#[cfg(windows)]
|
||||
mod crash;
|
||||
pub mod prepare;
|
||||
pub mod resolve;
|
||||
#[cfg(windows)]
|
||||
mod thunks;
|
||||
#[cfg(windows)]
|
||||
mod tls;
|
||||
#[cfg(windows)]
|
||||
mod windows;
|
||||
|
||||
#[cfg(windows)]
|
||||
pub use crash::{locate, report_crashes};
|
||||
pub use prepare::{PrepareError, PreparedImage, prepare};
|
||||
pub use resolve::{ImportResolver, Provenance, Resolution};
|
||||
#[cfg(windows)]
|
||||
pub use thunks::{UnimplementedPolicy, unimplemented_call_count};
|
||||
#[cfg(windows)]
|
||||
pub use windows::{BindReport, LoadedImage, MissingImport, load};
|
||||
pub use windows::{BindReport, LoadedImage, MissingImport, WithTitleDlls, load, load_title_dlls};
|
||||
|
||||
/// `DLL_PROCESS_ATTACH`, for TLS callbacks.
|
||||
pub const DLL_PROCESS_ATTACH: u32 = 1;
|
||||
Reference in new issue
Block a user