mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #649] [MERGED] OLD-7282: restore old upstream PR 7282 - pe_inspect: read the resource directory and the RT_VERSION block without its strings #689
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#689
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/649
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:pe-inspect-rt-version📝 Commits (1)
b895135pe_inspect: read the resource directory and the RT_VERSION block without its strings📊 Changes
3 files changed (+498 additions, -0 deletions)
View changed files
📝
docs/design.md(+11 -0)📝
tests/test_pe_inspect.py(+194 -0)📝
tools/pe_inspect.py(+293 -0)📄 Description
Claimed in the coordination issue as: OLD-7282 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129422079
Restoration of my original pull request, old upstream PR 7282 in
ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at21625bca8c; no changes beyond the rebase.Depends on: #45 (draft; not a dependency, but both change
tools/pe_inspect.pyand conflict there)What and why
tools/pe_inspect.pynever read data directory 2, so the report said nothing about the version block, the one part of a PE that names its build.problems(offsets and counts only). The rest of the report is still written.docs/design.mddescribes the newresourcesfield next to the PE report steps.Tested
Linux, Python 3.14.10, CPU only, synthetic inputs (the tests build the resource tree and the version block by hand; no game files).
python -I tests/test_pe_inspect.py:python -I tests/test_docs_design_rows.pyandpython -I tests/test_design_contract_rows.py: OK.python -m compileall -q tools tests,git diff --checkandpython -I scripts/check_no_game_data.pyon the three changed files: clean.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.