CDBDatabase: convert Search_ to matching C #548

Merged
coah80 merged 1 commits from agent/asm2c/CDBDatabase-Search_ into main 2026-10-01 22:40:03 +00:00
coah80 commented 2026-10-01 22:23:38 +00:00 (Migrated from github.com)

Summary

Exact C conversion in libs/RevoEX/src/cdb/CDBDatabase.c (one unit).

Function Exact
CDBDatabaseSearch_ 53/53, diffs 0

Builds a CDBSearchConditions (ordered begin/end dates, maker/game codes, callback fields, optional wiiId) and calls CDBDatabaseSearchYearLayer. Remaining asm in this TU left alone.

Also typed the CDBDatabaseSearchYearLayer prototype to match the call.

DOL SHA1

26116613f624061ba99c8d1a299aaa6efa85670d (ninja build/43U/ok OK)

Asm before / after

  • Before: CDBDatabaseSearch_ as PPC asm.
  • After: matching C.

Do not merge until reviewed.

## Summary Exact C conversion in `libs/RevoEX/src/cdb/CDBDatabase.c` (one unit). | Function | Exact | |---|---| | `CDBDatabaseSearch_` | 53/53, diffs 0 | Builds a `CDBSearchConditions` (ordered begin/end dates, maker/game codes, callback fields, optional `wiiId`) and calls `CDBDatabaseSearchYearLayer`. Remaining asm in this TU left alone. Also typed the `CDBDatabaseSearchYearLayer` prototype to match the call. ## DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d` (`ninja build/43U/ok` OK) ## Asm before / after - Before: `CDBDatabaseSearch_` as PPC asm. - After: matching C. **Do not merge** until reviewed.
coah80 commented 2026-10-01 22:40:00 +00:00 (Migrated from github.com)

Reviewed and merged: Search_ converted from asm to C (net one fewer asm function), CDBDatabase 33/33 exact with data 312/312, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d. The 13 flagged names are #520 renames. Next target: CDBDatabaseSearchYearLayer is still asm.

Reviewed and merged: Search_ converted from asm to C (net one fewer asm function), CDBDatabase 33/33 exact with data 312/312, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d. The 13 flagged names are #520 renames. Next target: CDBDatabaseSearchYearLayer is still asm.
Sign in to join this conversation.