Skip to content

Commit

Permalink
fix core_getDip to use vpint for libpinmame
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-link-eggy authored and jsm174 committed Jan 5, 2024
1 parent fbb9705 commit 6bb14f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wpc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ UINT64 core_getAllSol(void) {
/ Get the status of a DIP bank (8 dips)
/-----------------------------------------*/
int core_getDip(int dipBank) {
#ifdef VPINMAME
#if defined(VPINMAME) || defined(LIBPINMAME)
return vp_getDIP(dipBank);
#else /* VPINMAME */
return (readinputport(CORE_COREINPORT+1+dipBank/2)>>((dipBank & 0x01)*8))&0xff;
Expand Down

0 comments on commit 6bb14f6

Please sign in to comment.