Skip to content

Match 52 PAL resident game functions - #86

Merged
Lynder063 merged 2 commits into
OpenRAC:mainfrom
Sumaiter:decomp/pal-large-batch-04
Nov 3, 2026
Merged

Lynder063 merged 2 commits into
OpenRAC:mainfrom
Sumaiter:decomp/pal-large-batch-04

Conversation

@Sumaiter

@Sumaiter Sumaiter commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Adds matching C implementations for 52 previously undecompiled PAL resident game functions (9,408 bytes). The batch covers menu state updates, inventory checks, resource lookup and typed dispatch, callback maps, buffered data ranges, command packets, and grouped flag updates. Interfaces were reviewed against retail callers and callees, including forwarded arguments, callback signatures, output pointers, floating-point inputs and returns, and 64-bit packet values. Hash entries use typed key/value members, and dynamic table indexing avoids unsupported array bounds.

Adds 52 PAL match rows and corresponding US other rows while preserving all existing entries and their order. PAL matched code increases from 464,252 to 473,660 bytes (7.986549% to 8.148395%), and matched functions from 5,855 to 5,907. The US progress report is unchanged.

Validation:

  • Rebuilt all 52 final translation units through the unchanged tools/cc.sh pipeline and compared them at their direct PAL catalogue addresses: 52/52 MATCH.
  • Independently resolved all 378 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.15% (+0.16%) · 473.66 KB of 5.81 MB
Fuzzy match 8.65% (+0.16%)
Functions 5,907 (+52) / 18,113
Units complete 3,166 (+52) / 3,225
✅ Newly matched (52)
  • func_005055E8 (244 bytes)
  • func_004B5988 (232 bytes)
  • func_004D0618 (232 bytes)
  • func_00505B40 (228 bytes)
  • func_00505D18 (228 bytes)
  • func_00506590 (228 bytes)
  • func_00506A70 (228 bytes)
  • func_0045DFC8 (216 bytes)
  • func_004E88B8 (216 bytes)
  • func_005060D8 (212 bytes)
  • func_004F08E0 (208 bytes)
  • func_004CD9B8 (204 bytes)
  • func_0045D188 (200 bytes)
  • func_004D6EE8 (200 bytes)
  • func_00501BC8 (200 bytes)
  • func_00506F68 (200 bytes)
  • func_00507758 (200 bytes)
  • func_005125F8 (200 bytes)
  • func_004C8108 (196 bytes)
  • func_004CCFE8 (192 bytes)
  • func_00509738 (192 bytes)
  • func_00509850 (192 bytes)
  • func_00509960 (192 bytes)
  • func_0050A660 (192 bytes)
  • func_0050B5F8 (192 bytes)
  • func_0050C980 (192 bytes)
  • func_00457DA8 (184 bytes)
  • func_004D6468 (184 bytes)
  • func_005071B8 (184 bytes)
  • func_0053E0A0 (184 bytes)
  • …and 22 more

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 070accb · Ratchet: Deadlocked on ByteMatch

Lynder063 added a commit that referenced this pull request Nov 3, 2026
@Lynder063
Lynder063 merged commit dab050f into OpenRAC:main Nov 3, 2026
1 check passed
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