CDBDatabase: convert CleanUpEmptyDirectories to matching C #527

Merged
coah80 merged 1 commits from agent/asm2c/CDBDatabase-CleanUp into main 2026-10-01 22:30:34 +00:00
coah80 commented 2026-10-01 22:15:34 +00:00 (Migrated from github.com)

Summary

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

Function Exact
CDBDatabaseCleanUpEmptyDirectories 133/133, diffs 0

Close/FindByKey already on main via #491. Other asm bodies in this TU left as asm until exact.

Uses existing lbl_8166B5D0 / lbl_8166B618 for CDBReportError so the DOL string pool matches baserom.

DOL SHA1

26116613f624061ba99c8d1a299aaa6efa85670d (baserom/main.dol / build/43U/main.dol — ninja build/43U/ok OK)

Asm before / after

  • Before: CDBDatabaseCleanUpEmptyDirectories as PPC asm.
  • After: matching C; remaining asm in the file unchanged.

Do not merge until reviewed.

## Summary Exact C conversion in `libs/RevoEX/src/cdb/CDBDatabase.c` (one unit). | Function | Exact | |---|---| | `CDBDatabaseCleanUpEmptyDirectories` | 133/133, diffs 0 | Close/FindByKey already on main via #491. Other asm bodies in this TU left as asm until exact. Uses existing `lbl_8166B5D0` / `lbl_8166B618` for `CDBReportError` so the DOL string pool matches baserom. ## DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d` (`baserom/main.dol` / `build/43U/main.dol` — `ninja build/43U/ok` OK) ## Asm before / after - Before: `CDBDatabaseCleanUpEmptyDirectories` as PPC asm. - After: matching C; remaining asm in the file unchanged. **Do not merge** until reviewed.
coah80 commented 2026-10-01 22:30:30 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.