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
@@ -36,6 +36,14 @@ impl Default for HostPolicy {
|
||||
"sspicli.dll",
|
||||
"cabinet.dll",
|
||||
"avrt.dll",
|
||||
// Window, message and shell APIs: the host's desktop window
|
||||
// stands in for the console's single core window.
|
||||
"ext-ms-win-rtcore-ntuser-*",
|
||||
"api-ms-win-shcore-*",
|
||||
"msvcp_win.dll",
|
||||
"ole32.dll",
|
||||
"advapi32.dll",
|
||||
"iphlpapi.dll",
|
||||
];
|
||||
HostPolicy {
|
||||
allow: allow.iter().map(|s| s.to_string()).collect(),
|
||||
@@ -67,6 +75,16 @@ impl HostPolicy {
|
||||
}
|
||||
}
|
||||
|
||||
/// The host's own `name` from the System32 DLL `dll`: what a title import
|
||||
/// of it is bound to when we do not override it.
|
||||
pub(crate) fn function(dll: &str, name: &str) -> Option<usize> {
|
||||
let name = ImportSymbol::Name {
|
||||
hint: 0,
|
||||
name: name.into(),
|
||||
};
|
||||
imp::resolve(dll, &name)
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
mod imp {
|
||||
use std::collections::HashMap;
|
||||
|
||||
Reference in new issue
Block a user