Skip to content

CARD: return READY from CARDUnmount - #309

Open
StilesCrisis wants to merge 1 commit into
encounter:mainfrom
StilesCrisis:card-unmount-ready
Open

StilesCrisis wants to merge 1 commit into
encounter:mainfrom
StilesCrisis:card-unmount-ready

Conversation

@StilesCrisis

Copy link
Copy Markdown

CARDUnmount was hard-coded to always return CARD_RESULT_NOCARD. This API result indicates that no card was in the slot at all. This contradicts the return value of CARDMount, which returns CARD_RESULT_READY—indicating that a card is in the slot and is ready to use.

A game which is checking return values here will be expecting CARD_RESULT_READY from Unmount, which indicates a successful unmount of a card that is present in the slot.

CARDMount is a no-op that always reports CARD_RESULT_READY, but
CARDUnmount was a stub returning CARD_RESULT_NOCARD. Games that check
the result of unmounting (for example after a save completes) treated
that as the card having been pulled out. Mirror CARDMount and report
success.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SjpWoYqNDKkH5Zpdbz3WaW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant