cleanup(NWC24FriendList): name friend-list path string #533

Merged
coah80 merged 1 commits from cleanup/nwc24-friendlist-path into main 2026-10-01 22:58:48 +00:00
coah80 commented 2026-10-01 22:18:22 +00:00 (Migrated from github.com)

Summary

Rename friend-list file path .data string.

Before After
lbl_8166E160 scNwc24FlPath (/shared2/wc24/nwc24fl.bin)
lbl_8166E160_pad scNwc24FlPath_pad

objdiff (NWC24FriendList)

matched_code fuzzy functions matched_data
before/after 100.0 100.0 17/17 100.0

DOL sha1 unchanged: 26116613f624061ba99c8d1a299aaa6efa85670d

Test plan

  • ninja build/43U/ok
  • objdiff metrics unchanged
## Summary Rename friend-list file path `.data` string. | Before | After | |--------|-------| | `lbl_8166E160` | `scNwc24FlPath` (`/shared2/wc24/nwc24fl.bin`) | | `lbl_8166E160_pad` | `scNwc24FlPath_pad` | ## objdiff (NWC24FriendList) | | matched_code | fuzzy | functions | matched_data | |--|-------------|-------|-----------|--------------| | before/after | 100.0 | 100.0 | 17/17 | 100.0 | DOL sha1 unchanged: `26116613f624061ba99c8d1a299aaa6efa85670d` ## Test plan - [x] `ninja build/43U/ok` - [x] objdiff metrics unchanged
coah80 commented 2026-10-01 22:33:26 +00:00 (Migrated from github.com)

Not mergeable as is: __attribute__((section(".data"), aligned(8))) and the scNwc24FlPath_pad dummy object are forbidden layout hacks (no section attributes, no padding/dummy objects). The rename itself is fine. Please keep the original declaration form and only rename. If the string needs to land in .data, it has to come from how the real source declared it (e.g. a non-const char[]), not from a section attribute.

Not mergeable as is: `__attribute__((section(".data"), aligned(8)))` and the `scNwc24FlPath_pad` dummy object are forbidden layout hacks (no section attributes, no padding/dummy objects). The rename itself is fine. Please keep the original declaration form and only rename. If the string needs to land in .data, it has to come from how the real source declared it (e.g. a non-const `char[]`), not from a section attribute.
coah80 commented 2026-10-01 22:35:15 +00:00 (Migrated from github.com)

Updated per review: dropped the __attribute__((section...)) / pad objects and used a plain char scNwc24FlPath[] = "..."; with FLFilePath pointing at it. Symbols rename only.

Verified: ninja build/43U/ok OK, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d.

Updated per review: dropped the `__attribute__((section...))` / pad objects and used a plain `char scNwc24FlPath[] = "...";` with `FLFilePath` pointing at it. Symbols rename only. Verified: `ninja build/43U/ok` OK, DOL sha1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
coah80 commented 2026-10-01 22:49:05 +00:00 (Migrated from github.com)

Rebased onto current main again. Verified: ninja build/43U/ok OK, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d.

Rebased onto current `main` again. Verified: `ninja build/43U/ok` OK, DOL sha1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
coah80 commented 2026-10-01 22:58:46 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.