Skip to content

Compat additions for code moving off python-registry - #4

Merged
abrignoni merged 1 commit into
mainfrom
feat/compat-for-dleapp
Nov 4, 2026
Merged

abrignoni merged 1 commit into
mainfrom
feat/compat-for-dleapp

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Adds what DLEAPP needs to read hives through the compat layer instead of python-registry.

  • CompatRegistry carries the REG_* numbers under python-registry's names, checked against python-registry, and RegistryException for a file that is not a hive.
  • A REG_DWORD or REG_QWORD stored with too few bytes comes back as an int there; Value.data still keeps the bytes.
  • Hive(on_fault=...) reports each damaged structure once, as it is skipped.

🤖 Generated with Claude Code

What code moving off python-registry needs: its type constant names, one
base exception for a file that is not a hive, and an int from a REG_DWORD
or REG_QWORD stored short. Hive takes an on_fault callback, called once
per damaged structure as it is skipped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit 960e989 into main Nov 4, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/compat-for-dleapp branch November 4, 2026 19:33
@abrignoni abrignoni mentioned this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant