Skip to content

add dynlib management#3

Open
jedeoric wants to merge 3 commits intoassinie:masterfrom
jedeoric:master
Open

add dynlib management#3
jedeoric wants to merge 3 commits intoassinie:masterfrom
jedeoric:master

Conversation

@jedeoric
Copy link
Copy Markdown
Contributor

@jedeoric jedeoric commented Apr 2, 2025

No description provided.

# If a dynlib is found, we set formatversion to 4
if founddynlib:
formatversion = 4
header1['version'] = formatversion
Copy link
Copy Markdown
Owner

@assinie assinie Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ligne 417 inutile, pris en compte ligne 340

filesize_without_header = len(rawfile) + len(bitfieldmap)
if founddynlib:
formatversion = 5
header1['version'] = formatversion
Copy link
Copy Markdown
Owner

@assinie assinie Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ligne 451 inutile, pris en compte en ligne 461 du PR

Comment on lines +456 to +459
header_mutable = bytearray(header1['reserved'])
header_mutable[2] = (filesize_without_header) & 0xFF
header_mutable[3] = ((filesize_without_header) >> 8) & 0xFF
header1['reserved'] = bytes(header_mutable)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

À remplacer par un appel à modify_header_dynlib() comme pour le format 2?

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