Skip to content

Refactor header read types and update LarmorFreq calculation - #104

Merged
markmikkelsen merged 2 commits into
devfrom
main
Jun 18, 2026
Merged

markmikkelsen merged 2 commits into
devfrom
main

Conversation

@markmikkelsen

Copy link
Copy Markdown
Owner

No description provided.

Use uint32 for header read; bump load version
Use a signed integer read for header offsets and introduce a separate unsigned read for fields that are truly unsigned. i_hdr_value is now read as 'integer*4' (signed) and used for pfile_header_size/offsets, while ui_hdr_value is read as 'uint32' and used to compute MRS_struct.p.LarmorFreq (divided by 1e7). Also add a fseek before the unsigned read to ensure correct file position.
@markmikkelsen
markmikkelsen merged commit c7062da into dev Jun 18, 2026
4 checks passed
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