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 /tools/rtti_scan.py | |
| 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 'tools/rtti_scan.py')
| -rw-r--r-- | tools/rtti_scan.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/rtti_scan.py b/tools/rtti_scan.py index 207c4ba5e..c2d2ae0b9 100644 --- a/tools/rtti_scan.py +++ b/tools/rtti_scan.py | |||
| @@ -24,7 +24,6 @@ import tempfile | |||
| 24 | 24 | ||
| 25 | sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | 25 | sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) |
| 26 | from file_mode import published_mode # noqa: E402 | 26 | from file_mode import published_mode # noqa: E402 |
| 27 | from report_paths import same_report_path # noqa: E402 | ||
| 28 | 27 | ||
| 29 | 28 | ||
| 30 | 29 | ||
| @@ -501,10 +500,6 @@ def write_report(path, text): | |||
| 501 | except BaseException: | 500 | except BaseException: |
| 502 | if tmp is not None: | 501 | if tmp is not None: |
| 503 | try: | 502 | try: |
| 504 | os.chmod(tmp, 0o600) | ||
| 505 | except OSError: | ||
| 506 | pass | ||
| 507 | try: | ||
| 508 | os.remove(tmp) | 503 | os.remove(tmp) |
| 509 | except OSError: | 504 | except OSError: |
| 510 | pass | 505 | pass |
| @@ -520,7 +515,12 @@ def main(): | |||
| 520 | print(f"ERROR: {a.image}: does not exist", file=sys.stderr) | 515 | print(f"ERROR: {a.image}: does not exist", file=sys.stderr) |
| 521 | return 2 | 516 | return 2 |
| 522 | path = a.out or re.sub(r"\.(exe|dll)$", "", a.image, flags=re.I) + ".rtti.json" | 517 | path = a.out or re.sub(r"\.(exe|dll)$", "", a.image, flags=re.I) + ".rtti.json" |
| 523 | if same_report_path(a.image, path): | 518 | same_path = os.path.normcase(os.path.realpath(a.image)) == os.path.normcase(os.path.realpath(path)) |
| 519 | try: | ||
| 520 | same_path = same_path or os.path.samefile(a.image, path) | ||
| 521 | except OSError: | ||
| 522 | pass # A missing or inaccessible path is handled by the normal read/write error path. | ||
| 523 | if same_path: | ||
| 524 | ap.error("output must not overwrite the source image") | 524 | ap.error("output must not overwrite the source image") |
| 525 | try: | 525 | try: |
| 526 | with open(a.image, "rb") as f: | 526 | with open(a.image, "rb") as f: |