Skip to content

util: Add type for RelocationTable::Entry - #71

Merged
MonsterDruide1 merged 1 commit into
open-ead:masterfrom
MonsterDruide1:binary-relocation-entry
Sep 9, 2026
Merged

util: Add type for RelocationTable::Entry#71
MonsterDruide1 merged 1 commit into
open-ead:masterfrom
MonsterDruide1:binary-relocation-entry

Conversation

@MonsterDruide1

@MonsterDruide1 MonsterDruide1 commented Jul 20, 2026

Copy link
Copy Markdown

There is no trace of this type existing as a type/class in the game's binary or SDK, but it greatly simplifies code around relocations.

Names for the offsets have been taken from https://nintendo-formats.com/libs/switch/binary.html#relocation-entry, and independently verified to be correct by looking into nn::util::RelocationTable::Relocate(void) (from the SDK).


This change is Reviewable

@MonsterDruide1 MonsterDruide1 self-assigned this Jul 20, 2026
@Pistonight

Copy link
Copy Markdown

@MonsterDruide1 LGTM, anything blocking merge?

@MonsterDruide1

Copy link
Copy Markdown
Author

Getting feedback from someone that I'm not misreading something, so your LGTM fits the purpose 😅

@MonsterDruide1
MonsterDruide1 merged commit 84e342b into open-ead:master Sep 9, 2026
1 check passed
@MonsterDruide1
MonsterDruide1 deleted the binary-relocation-entry branch September 9, 2026 09:20
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