CDBDatabase: convert CreateRecordAtOnce to matching C #558

Merged
coah80 merged 1 commits from agent/asm2c/CDBDatabase-CreateRecordAtOnce into main 2026-10-01 23:20:54 +00:00
coah80 commented 2026-10-01 22:29:10 +00:00 (Migrated from github.com)

Summary

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

Function Exact
CDBDatabaseCreateRecordAtOnce 37/37, diffs 0

Loads makerCode/gameCode, takes OSGetTime(), then calls CDBDatabaseCreateRecordImAtOnce_ under lock. Remaining asm in this TU left alone.

Also typed the CDBDatabaseCreateRecordImAtOnce_ prototype (asm body unchanged) so the call compiles.

DOL SHA1

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

Asm before / after

  • Before: CDBDatabaseCreateRecordAtOnce 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 | |---|---| | `CDBDatabaseCreateRecordAtOnce` | 37/37, diffs 0 | Loads `makerCode`/`gameCode`, takes `OSGetTime()`, then calls `CDBDatabaseCreateRecordImAtOnce_` under lock. Remaining asm in this TU left alone. Also typed the `CDBDatabaseCreateRecordImAtOnce_` prototype (asm body unchanged) so the call compiles. ## DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d` (`ninja build/43U/ok` OK) ## Asm before / after - Before: `CDBDatabaseCreateRecordAtOnce` as PPC asm. - After: matching C. **Do not merge** until reviewed.
coah80 commented 2026-10-01 22:44:23 +00:00 (Migrated from github.com)

Gate passes on your base (DOL sha1 ok, 0 regressions), but this conflicts with #555 (same CDBDatabase.c). Please rebase onto origin/main and push, and I'll re-run the gate and merge.

Gate passes on your base (DOL sha1 ok, 0 regressions), but this conflicts with #555 (same CDBDatabase.c). Please rebase onto origin/main and push, and I'll re-run the gate and merge.
coah80 commented 2026-10-01 23:05:20 +00:00 (Migrated from github.com)

Rebased onto latest main (post-#555). Exact 37/37, ctxdiff diffs 0, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.

Rebased onto latest `main` (post-#555). Exact 37/37, `ctxdiff` diffs 0, DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
coah80 commented 2026-10-01 23:14:47 +00:00 (Migrated from github.com)

Rebased onto latest main again. Exact 37/37, ctxdiff diffs 0, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.

Rebased onto latest `main` again. Exact 37/37, `ctxdiff` diffs 0, DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
coah80 commented 2026-10-01 23:20:52 +00:00 (Migrated from github.com)

Reviewed and merged after rebase: CreateRecordAtOnce converted to C, CDBDatabase 33/33 with data 312/312, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden.

Reviewed and merged after rebase: CreateRecordAtOnce converted to C, CDBDatabase 33/33 with data 312/312, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden.
Sign in to join this conversation.