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
Vendored
+17
@@ -12,6 +12,12 @@ unsafe extern "system" {
|
||||
fn VIctoryProbeNotImplemented(x: u64) -> u64;
|
||||
}
|
||||
|
||||
// A DLL the "title" ships; the test supplies a renamed copy of version.dll.
|
||||
#[link(name = "victory-probe-title", kind = "raw-dylib")]
|
||||
unsafe extern "system" {
|
||||
fn GetFileVersionInfoSizeW(path: *const u16, handle: *mut u32) -> u32;
|
||||
}
|
||||
|
||||
// Delay-loaded (see build.rs): bound through the delay-load table.
|
||||
#[link(name = "victory-probe-delayed", kind = "raw-dylib")]
|
||||
unsafe extern "system" {
|
||||
@@ -42,6 +48,17 @@ pub extern "system" fn probe_pid() -> u32 {
|
||||
unsafe { GetCurrentProcessId() }
|
||||
}
|
||||
|
||||
/// An export of a title-shipped DLL: the version-info size of kernel32.dll.
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "system" fn probe_title() -> u32 {
|
||||
let path: Vec<u16> = r"C:\Windows\System32\kernel32.dll"
|
||||
.encode_utf16()
|
||||
.chain(Some(0))
|
||||
.collect();
|
||||
let mut handle = 0;
|
||||
unsafe { GetFileVersionInfoSizeW(path.as_ptr(), &mut handle) }
|
||||
}
|
||||
|
||||
/// A delay-loaded console API.
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "system" fn probe_delayed() -> u32 {
|
||||
|
||||
Reference in new issue
Block a user