From 00131bb85ee294179e5179b00a2c68f4ea3610b5 Mon Sep 17 00:00:00 2001 From: NotRexed Date: Fri, 27 Nov 2026 17:58:38 -0500 Subject: main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia After the merge the tree held this branch's older states of files main maintains. Run against main's code, tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have been built from two generations of its sources. So that the merge cannot break what main builds and tests: - runtime/ is main's, file for file (68 files only this branch had are not carried over); - every file under tools/, tests/ and docs/ that both sides have is main's (80 files); - ten translator tests only this branch has, which test rules main's translator does not have, and their fixtures are left out. What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1, play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia. Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own. Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the branch's), CI. Co-Authored-By: Claude Fable 5.2 --- runtime/src/pe_loader.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'runtime/src/pe_loader.cpp') diff --git a/runtime/src/pe_loader.cpp b/runtime/src/pe_loader.cpp index 54440459d..fc73f37f5 100644 --- a/runtime/src/pe_loader.cpp +++ b/runtime/src/pe_loader.cpp @@ -1341,10 +1341,6 @@ void* bundled_load_w(void* ctx, const std::wstring& basename, uint32_t flags, bo return static_cast(ctx)->load_runtime_module_w(basename, flags, handled); } -bool bundled_module_path(void* ctx, void* module, std::wstring& path) { - return static_cast(ctx)->module_path(module, path); -} - const shims::BundledModuleOps kBundledOps{ &bundled_find_loaded, &bundled_load, @@ -1352,7 +1348,6 @@ const shims::BundledModuleOps kBundledOps{ &bundled_owns_handle, &bundled_find_loaded_w, &bundled_load_w, - &bundled_module_path, }; // Marks what a run-time load maps as a dynamic load for as long as it is in scope (the caller holds the mutex). @@ -1600,19 +1595,6 @@ bool Loader::find_address(uint64_t address, std::string& module, uint32_t& rva) return false; } -bool Loader::module_path(void* module_handle, std::wstring& path) const { - if (!module_handle) return false; - std::lock_guard lock(mutex_); - for (const Module* m : order_) - if (m->base == module_handle) { - std::error_code ec; - const std::filesystem::path absolute = std::filesystem::absolute(m->path, ec); - path = (ec ? m->path : absolute).wstring(); - return true; - } - return false; -} - bool Loader::owns_module_handle(void* module_handle) const { if (!module_handle) return false; std::lock_guard lock(mutex_); -- cgit v1.2.3