fix(MemoryCard): initialize shared-state fallback result without code changes #1174
Reference in New Issue
Block a user
Delete Branch "agent/bittle/card-result-initialization"
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?
Summary
Initialize result from the selected file number in isMoveEnable and isCopyEnable. These are the only two source-line changes. Shared card state can change between the eligibility test and the second error-selection pass, leaving result unassigned in the previous C++. Retail retains the file number in r29 on that fallthrough; the initializer makes this source behavior explicit without adding a fabricated value. All volatile reads, error priorities, and output timing remain unchanged.
Independent verification
e5644c0295equals published treeThis is a source-correctness repair, not a percentage gain. No flags, metadata, linking changes, assembly or unrelated edits. Evidence: tools/decomp-assist/card-result-initialization-audit.md. No merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.