diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 17:58:38 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 17:58:38 -0500 |
| commit | 00131bb85ee294179e5179b00a2c68f4ea3610b5 (patch) | |
| tree | 11854f35d928e964919b81746360146c3657ce07 /runtime/test/process_cmdline_test.cpp | |
| parent | eac96d744c3a899fa6e326e296f387fe11e05eab (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/process_cmdline_test.cpp')
| -rw-r--r-- | runtime/test/process_cmdline_test.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/test/process_cmdline_test.cpp b/runtime/test/process_cmdline_test.cpp index a550910b9..bf55821d1 100644 --- a/runtime/test/process_cmdline_test.cpp +++ b/runtime/test/process_cmdline_test.cpp | |||
| @@ -439,23 +439,6 @@ int main() { | |||
| 439 | SetProcessAffinityMask(GetCurrentProcess(), process_mask); | 439 | SetProcessAffinityMask(GetCurrentProcess(), process_mask); |
| 440 | } | 440 | } |
| 441 | 441 | ||
| 442 | // The title's debug output is served (and logged as "[title] ..."); TerminateProcess is served by the shim too. | ||
| 443 | { | ||
| 444 | using DebugA = void(WINAPI*)(LPCSTR); | ||
| 445 | using DebugW = void(WINAPI*)(LPCWSTR); | ||
| 446 | const auto debug_a = reinterpret_cast<DebugA>(rt::shims::find("kernelbase.dll", "OutputDebugStringA")); | ||
| 447 | const auto debug_w = | ||
| 448 | reinterpret_cast<DebugW>(rt::shims::find("api-ms-win-core-debug-l1-1-0.dll", "OutputDebugStringW")); | ||
| 449 | if (!debug_a || !debug_w || !rt::shims::find("kernel32.dll", "TerminateProcess")) { | ||
| 450 | std::fprintf(stderr, "FAIL OutputDebugStringA/W and TerminateProcess are not served\n"); | ||
| 451 | ++failures; | ||
| 452 | } else { | ||
| 453 | debug_a("process_cmdline: a narrow debug line\n"); | ||
| 454 | debug_w(L"process_cmdline: a wide debug line Δ"); | ||
| 455 | debug_a(nullptr); | ||
| 456 | } | ||
| 457 | } | ||
| 458 | |||
| 459 | if (failures) return 1; | 442 | if (failures) return 1; |
| 460 | std::printf("process_cmdline: GetCommandLineW parses back to __wargv, non-ASCII arguments intact (code page %u); " | 443 | std::printf("process_cmdline: GetCommandLineW parses back to __wargv, non-ASCII arguments intact (code page %u); " |
| 461 | "the WinMain line and the kernelbase/API-set names are the game's\n", | 444 | "the WinMain line and the kernelbase/API-set names are the game's\n", |