Skip to content

fix settings stringdata pointer#80

Merged
Mauler125 merged 2 commits into
r-ex:mainfrom
kralrindo:main
Mar 1, 2026
Merged

fix settings stringdata pointer#80
Mauler125 merged 2 commits into
r-ex:mainfrom
kralrindo:main

Conversation

@kralrindo

Copy link
Copy Markdown
Contributor

stringdata pointer was pointing to the wrong location, it should point to the start of the string buffer before any strings are written, not the middle mod string offsets need to be calculated relative to the start of all strings, not relative to where mod strings begin tested and can confirm it works as intended now

stringdata pointer was pointing to the wrong location, it should point to the start of the string buffer before any strings are written, not the middle
mod string offsets need to be calculated relative to the start of all strings, not relative to where mod strings begin
tested and can confirm it works as intended now
@Mauler125

Copy link
Copy Markdown
Collaborator

Thanks! looks good, though rename the initialStringBufIndex variable to stringBufferBase and move the pak->AddPointer(hdrLump, offsetof(SettingsAssetHeader_s, stringData), dataLump, stringBufferBase); call above the SettingsAsset_WriteValues(...) call. This is to maintain consistency with the rest of the file.

@Mauler125 Mauler125 merged commit ff644b0 into r-ex:main Mar 1, 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.

2 participants