Skip to content

feat(us): match 6 more library functions - #28

Merged
SlyC00per merged 1 commit into
OpenThievius:masterfrom
SlyC00per:wave52
Nov 2, 2026
Merged

SlyC00per merged 1 commit into
OpenThievius:masterfrom
SlyC00per:wave52

Conversation

@SlyC00per

Copy link
Copy Markdown
Member

What changed

6 library functions matched (US). A Sonnet pass covered the library functions left after #27: the 23 with no attempt that compiled and the 31 more than 60 lines from retail. It matched func_00201A18, func_00209CB8, func_0020B2E8 (jump table), func_0020C1A0, func_0020E120 and func_0020E8A0.

  • func_00201A18 writes a hardware register through volatile, which AGENTS.md allows.
  • func_0020E8A0's last four stores were ordered with tools/permute.py.

What you verified

  • Every worker's EXACT was re-checked with python3 tools/check.py in US and PAL, and all 124 functions in the three library files touched print EXACT.
  • python3 tools/build.py prints MATCH: build/us/SCUS_971.98 sha1 57dc305db57932ad3f1122966cdb695d2e62a47a with 3383 functions from C.
  • python3 tools/build.py --version eu prints MATCH: build/eu/SCES_509.17 sha1 f23240fc4a3efd463a5b3617b9250da4d5fe842c.
  • python3 tools/version_check.py wrote 64 absent, 3 differs, 3387 match.
  • python3 -m unittest discover -s tests prints OK.
  • python3 tools/progress.py --check exits 0.
  • python3 tests/check_repository.py prints ok: 0 problem(s).

US is 4,265 of 4,770 functions (77.18% of code), PAL 4,261 of 4,795 (76.75%).

  • Build and checks above
  • No game data, generated assembly or toolchain files in the diff

A Sonnet pass over the library functions left after OpenThievius#27 (the 23 with
no attempt that compiled and the 31 more than 60 lines from retail)
matched 6: func_00201A18, func_00209CB8, func_0020B2E8 (a jump table),
func_0020C1A0, func_0020E120 and func_0020E8A0. func_00201A18 writes
a hardware register through volatile, which AGENTS.md allows.

Verified: every worker EXACT re-checked with python3 tools/check.py
in us and eu; all 124 functions in the three library files touched
print EXACT; python3 tools/build.py prints MATCH: build/us/SCUS_971.98
sha1 57dc305db57932ad3f1122966cdb695d2e62a47a with 3383 functions
from C; the PAL build still matches; python3 tools/version_check.py
wrote 64 absent, 3 differs, 3387 match; python3 -m unittest discover
-s tests is OK; python3 tools/progress.py --check exits 0; python3
tests/check_repository.py prints ok: 0 problem(s). US is 4,265 of
4,770 functions (77.18% of code), PAL 4,261 of 4,795 (76.75%).
@SlyC00per
SlyC00per merged commit c8e1db8 into OpenThievius:master Nov 2, 2026
2 checks passed
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.

1 participant