decomp: reconstruct ESMisc cleanup helpers and return ABI #964
Reference in New Issue
Block a user
Delete Branch "agent/bittle/esmisc-reconstruction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Decompilation-first correction
Reconstructs DeleteUnauthorizedData through three real inline helper boundaries named in target diagnostic strings: verifySavedataZD, DeleteTicketsForce, InitSavedata. No linking flags, metadata, assembly or padding changes. Still non-exact.
Corrects out-of-object path-8/fileInfo-0x20 accesses, title iteration that failed to advance on the verifier path, the handwritten title-switch lowering, read-error cleanup order, and lifetime of enumeration status. Uses real aligned caller-owned buffers and typed title indexing.
Shared header change disclosed: DeleteUnauthorizedData returns s32 rather than void. Target object offsets0x1D20/0x1D9C save enumeration results in r27 and0x23C0 returns it in r3. Sole caller in iplSystem ignores the result; its compiled object is unchanged. Target verifier rejoins common iteration at0x238C; read failure joins cleanup0x2104 separately from successful close0x20E0.
Independently verified on
d0e54836Remote tree685a752ea9d65cde52ff427cb3f20d659f0f0260 equals tested local tree. AOSS/ATERM unchanged. Attempts/evidence included. Left for review; no merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.