djhackersdev / bemanitools

Runs recent Konami arcade games and emulates various arcade hardware.
The Unlicense
84 stars 16 forks source link

aciodrv: Add wavepass support to ICCA (#1) - [merged] #187

Closed icex2 closed 1 year ago

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 18:39

Merges aciodrv-wavepass -> master

Summary

Adds wavepass support to aciodrv, eamiotest, and eamio-icca.

Description

Implements wavepass support, while keeping the existing interfaces and slotted reader support.

In order to support the existing interface (which doesn't expose when the game calls the felica poll), as well as support for games that don't natively support wavepass readers, the felica polling of the wavepass reader has been implemented as something that happens automatically every X successful polls. This mirrors how the real games do it.

Related Issue

1

How Has This Been Tested?

Tested with: aciotest / eamiotest:

aciotest / eamiotest / IIDX10,12,27:

aciotest / eamiotest / sdvx1-5:

aciotest:

Thanks to:

icex2 commented 3 years ago

Nit magic number: Create a macro or const field for the value, e.g. #define LOOPS_UNTIL_ICCA_POLL

icex2 commented 3 years ago

I think that line can be removed if you assign it just a few lines below based on the actual data.

icex2 commented 3 years ago

For debugging, I would add a log_debug outputting how the readers was detected, e.g. slotted vs. wavepass.

icex2 commented 3 years ago

Nit: Same as above, move magic number to const field or macro.

icex2 commented 3 years ago

I really do like how this turned out. Great job. I will already give you my approval since the things I pointed out are not crucial. Feel free to merge this once my comments are addressed and if you do not disapprove otherwise.

icex2 commented 3 years ago

approved this merge request

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 22:35

Commented on src/main/eamio-icca/eamio-icca.c line 137

ah, I missed this, it's leftover from when I was testing probably, good catch.

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 22:38

resolved all threads

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 22:42

Commented on src/main/aciotest/icca.c line 117

changed this line in version 2 of the diff

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 22:42

Commented on src/main/eamio-icca/eamio-icca.c line 137

changed this line in version 2 of the diff

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 22:42

Commented on src/main/eamio-icca/eamio-icca.c line 282

changed this line in version 2 of the diff

icex2 commented 3 years ago

In GitLab by @xyen on Mar 17, 2021, 22:42

added 1 commit

Compare with previous version