mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-09-22 22:38:16 +03:00
danevo: retry card UID reads (#914)
## Link to GitHub Issue or related Pull Request, if one exists #0 ## Description of change Dance Evolution requires the same FeliCa UID to be returned repeatedly before accepting a card. Add KDM to the existing retry logic so physical cards register without needing to be held unusually long. ## Testing - Validated by compiling spice2x successfully - Tested with latest action compiled spice 32bit executable, card insert work instantly
This commit is contained in:
@@ -118,11 +118,11 @@ static inline void update_card(int unit_id) {
|
||||
const bool card_presented = eamuse_card_insert_consume(icca_get_active_count(), unit_id);
|
||||
const bool key_pressed = (kb_insert_press && !kb_insert_press_old[unit_id]);
|
||||
|
||||
// beatstream and nostalgia have logic that requires ac_io_icca_get_uid_felica to return the
|
||||
// beatstream, nostalgia and Dance Evolution have logic that requires ac_io_icca_get_uid_felica to return the
|
||||
// exact same card number multiple times in a row in order for the card number to be read...
|
||||
// for whatever reason setting this to 3-4 doesn't work the very first time the game boots up
|
||||
// so we use 10 just to be safe
|
||||
const bool need_felica_retries = avs::game::is_model({"NBT", "PAN"});
|
||||
const bool need_felica_retries = avs::game::is_model({"KDM", "NBT", "PAN"});
|
||||
if (need_felica_retries && (card_presented || key_pressed)) {
|
||||
unit->felica_retries = 10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user