Skip to content

psptool/file.py: Add support for type 0x7c#76

Merged
cwerling merged 1 commit intoPSPReverse:masterfrom
3mdeb:fix_type_x7c
Jan 16, 2026
Merged

psptool/file.py: Add support for type 0x7c#76
cwerling merged 1 commit intoPSPReverse:masterfrom
3mdeb:fix_type_x7c

Conversation

@miczyg1
Copy link
Contributor

@miczyg1 miczyg1 commented Jan 16, 2026

Type 0x7c BIOS entry is OC sweet spot profile, which is a raw data binary. It does not contain a header. Add the type 0x7c to the known entry types and mark it as headerless to avoid ParseError exception:

Warning: ParseError from BiosDirectoryEntry(self.type=0x7c, self.flags=0x2000, self.size=0x210, self.offset=0x40000, self.entry_offset=0x2e8, self.rsv0=0x80000000, self.destination=0xffffffffffffffff): 
  Did not expect signed to be 0x73

TEST=Parse MSI PRO B850-P WIFI BIOS 7E56v2A75 without errors.

Type 0x7c BIOS entry is OC sweet spot profile, which is a raw
data binary. It does not contain a header. Add the type 0x7c
to the known entry types and mark it as headerless to avoid
ParseError exception.

TEST=Parse MSI PRO B850-P WIFI BIOS without errors.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
@github-actions
Copy link

Metrics

psptool command line interface metrics

Metric Value
Files Processed 68
Stdout Lines 14,913
Stderr Lines 144
Total Lines 15,057
Error Ratio 0.96%

PSPTool python library metrics

Status Count Percentage
✓ Successful 68 100.0%
✗ Failed 0 0.0%
Total 68 100%

All files parsed successfully!

@cwerling
Copy link
Member

Great, thanks!

@cwerling cwerling merged commit 9feb030 into PSPReverse:master Jan 16, 2026
1 check passed
@miczyg1 miczyg1 deleted the fix_type_x7c branch January 16, 2026 15:36
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.

2 participants