mirror of
https://github.com/rcornwell/sims.git
synced 2026-02-14 11:55:20 +00:00
SCP: Updated sim_card to report correct number of cards read in.
This commit is contained in:
@@ -819,9 +819,10 @@ _sim_parse_card(UNIT *uptr, DEVICE *dptr, struct _card_buffer *buf, uint16 (*ima
|
||||
temp = ascii_to_dec_029[(int)c];
|
||||
break;
|
||||
}
|
||||
if (temp & 0xf000)
|
||||
(*image)[0] |= CARD_ERR;
|
||||
(*image)[col++] = temp & 0xfff;
|
||||
if (temp & 0xf000) {
|
||||
(*image)[0] |= CARD_ERR;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1353,6 +1354,10 @@ sim_card_attach(UNIT * uptr, CONST char *cptr)
|
||||
|
||||
/* Go read the deck */
|
||||
r = _sim_read_deck(uptr, eof);
|
||||
/* Remove added eof from count */
|
||||
if (eof) {
|
||||
previous_cards++;
|
||||
}
|
||||
uptr->pos = saved_pos;
|
||||
detach_unit(uptr);
|
||||
if (was_attached) {
|
||||
|
||||
Reference in New Issue
Block a user