decomp(card): scope the permission-check result #1059
Reference in New Issue
Block a user
Delete Branch "agent/bittle/card-permission-review"
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?
Partial reconstruction
Use a stage-local permissionResult for the existing initial copy/move permission check. Its failure paths return through the same finish operation; success continues to the existing status query that defines the later transfer result. There is no copy back, extra live state or allocation-only duplicate.
Original permission result lives in r16 only through its error gate; that register is subsequently reused for createSize. The source now describes that actual operation boundary.
This is a small partial fuzzy gain, not an exact or linking claim.
Independent verification
Base 81ba279958fa6bbee69b5f14762243dd258ded6f; tested tree
bc2a8b6fb3.CARD calls are modeled and execution stops at early return or the next transfer status query; this is not a complete card-copy or Wii runtime test. Details: tools/decomp-assist/card-permission-lifetime-20261003.md.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.