sega/sega_beena.cpp: TV Ocha-Ken cards are swiped through the scanner - can't swipe an absent card.

This commit is contained in:
Vas Crabb 2023-12-16 10:38:26 +11:00
parent f35442bd36
commit 3ec94b65ab
2 changed files with 1 additions and 2 deletions

View File

@ -2119,7 +2119,7 @@ uint32_t tvochken_state::io_expansion_r()
void tvochken_state::scan_card(int state)
{
if (state && (m_card_state == IDLE)) {
if (m_card->exists() && state && (m_card_state == IDLE)) {
m_card_data = m_card->barcode();
m_card_hold_i = 10;
m_card_state = START_WRITE_DATA;

View File

@ -9,7 +9,6 @@
TODO:
* Decode barcode from the scan so it doesn't need to be in a software
part feature and loose files can be supported.
* Determine correct barcode value to return when no card is inserted.
*******************************************************************************/