Skip to content

Match 54 PAL game and resource functions - #88

Merged
Lynder063 merged 1 commit into
OpenRAC:mainfrom
Sumaiter:decomp/pal-large-batch-05
Nov 3, 2026
Merged

Lynder063 merged 1 commit into
OpenRAC:mainfrom
Sumaiter:decomp/pal-large-batch-05

Conversation

@Sumaiter

@Sumaiter Sumaiter commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Adds matching C implementations for 54 previously undecompiled PAL resident game functions (10,576 bytes). The batch covers resource dispatch and lifetime management, menu state machines and selection transitions, formatted notices, inventory queries, packed-color updates, and typed callback maps. Interfaces were reviewed against retail callers and callees, including output pointers, serialized data, full floating-point forwarding, renderer source pointers and 64-bit color values. Candidates whose local outputs could not be proven initialized were excluded.

Adds 54 PAL match rows and corresponding US other rows while preserving all existing entries and their order. PAL matched code increases from 464,252 to 474,828 bytes (7.986549% to 8.168488%), and matched functions from 5,855 to 5,909. The US progress report is unchanged.

Validation:

  • Rebuilt all 54 final translation units through the unchanged tools/cc.sh pipeline and compared them at their direct PAL catalogue addresses: 54/54 MATCH.
  • Independently resolved all 427 text relocation entries against PAL retail, including call targets, function pointers, HI16/LO16 addresses and GP-relative references. Checked locally defined small-data initializers against retail; PAL GP was derived from startup code.
  • Both versions' progress/source-map checks pass. Verified the exact PAL function/byte increase, unchanged US report, preservation of existing map rows, and that staged C source hashes equal the audited sources.

This validation covers the added translation units and their matching metadata. A full repository rebuild, US disc audit, linked game build and runtime test were not run. No compiler-pipeline changes, disc data, extracted binaries or assembly listings are included.

@bytematchdev

bytematchdev Bot commented Nov 3, 2026

Copy link
Copy Markdown

ByteMatch progress report

SCES_532.85

Code matched 8.17% (+0.18%) · 474.83 KB of 5.81 MB
Fuzzy match 8.66% (+0.18%)
Functions 5,909 (+54) / 18,113
Units complete 3,168 (+54) / 3,227
✅ Newly matched (54)
  • func_004CB7E0 (260 bytes)
  • func_005056E0 (244 bytes)
  • func_005057D8 (244 bytes)
  • func_00505F00 (244 bytes)
  • func_00506878 (244 bytes)
  • func_004D4A88 (240 bytes)
  • func_005074A0 (236 bytes)
  • func_004CFA08 (232 bytes)
  • func_004B0028 (228 bytes)
  • func_00505A50 (228 bytes)
  • func_005062D0 (228 bytes)
  • func_005063C0 (228 bytes)
  • func_00506678 (228 bytes)
  • func_004E8BD8 (224 bytes)
  • func_0050A3D0 (216 bytes)
  • func_00506000 (212 bytes)
  • func_00507828 (208 bytes)
  • func_00511530 (208 bytes)
  • func_0054C330 (208 bytes)
  • func_00499120 (204 bytes)
  • func_004CDB70 (204 bytes)
  • func_004EBDD8 (204 bytes)
  • func_0054B6F8 (204 bytes)
  • func_004D1750 (200 bytes)
  • func_00507030 (200 bytes)
  • func_005075A0 (200 bytes)
  • func_00507690 (200 bytes)
  • func_0044E090 (196 bytes)
  • func_004B65E8 (196 bytes)
  • func_004C3E20 (192 bytes)
  • …and 24 more
📉 Worse (2)
  • func_00504C20 89.02% → 0.00%
  • func_00501F70 97.32% → 0.00%

SCUS_974.65

Code matched 7.17% · 414.34 KB of 5.78 MB
Fuzzy match 7.73%
Functions 5,435 / 18,085
Units complete 2,839 / 2,899

No function changes.

Commit 66ab394 · Ratchet: Deadlocked on ByteMatch

@Lynder063
Lynder063 merged commit 8765679 into OpenRAC:main Nov 3, 2026
1 check passed
Lynder063 added a commit that referenced this pull request Nov 3, 2026
Veradictus pushed a commit to chistianh/rac-deadlocked-decomp that referenced this pull request Nov 4, 2026
…, OpenRAC#88 and OpenRAC#89

map.tsv is the union of the rows those four PRs generated, in match_map.py's order.
Reports and README tables rebuilt with tools/progress.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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