Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpmsru: Added Lucky Casino #9864

Merged
merged 3 commits into from
Jun 10, 2022
Merged

jpmsru: Added Lucky Casino #9864

merged 3 commits into from
Jun 10, 2022

Conversation

SomeRandomGuyIdk
Copy link
Contributor

  • Added a new game, Lucky Casino
  • Added 50p slot and lockout to Super 2

Comment on lines 1058 to 1059
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Take Win")
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Take Half")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are IPT_GAMBLE_TAKE and IPT_GAMBLE_HALF types for these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment on lines 19153 to 19157
j_goldn2 // Golden 2's (CTL)
j_sup2p // Super 2p Shuffle (MDM)
j_la // Lucky Aces
j_lc // Lucky Casino (JPM)
j_lca //
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sort these by short name within the section for the file. It makes it easier to find things.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment on lines 502 to 507
case 2: m_logicext_addr = (m_logicext_addr & ~0x01) | (data ? 0x00 : 0x01); break;
case 3: m_logicext_addr = (m_logicext_addr & ~0x02) | (data ? 0x00 : 0x02); break;
case 4: m_logicext_addr = (m_logicext_addr & ~0x04) | (data ? 0x00 : 0x04); break;
case 5: m_logicext_addr = (m_logicext_addr & ~0x08) | (data ? 0x00 : 0x08); break;
case 6: m_logicext_addr = (m_logicext_addr & ~0x10) | (data ? 0x00 : 0x10); break;
case 7: m_logicext_addr = (m_logicext_addr & ~0x20) | (data ? 0x00 : 0x20); break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you consolidate these cases to something like m_logicext_addr = (m_logicext_addr & ~(1 << (offset - 2))) | (data ? 0 : (1 << (offset - 2)))? Right now there are a pile of almost duplicated lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@cuavas cuavas merged commit 4452934 into mamedev:master Jun 10, 2022
@SomeRandomGuyIdk SomeRandomGuyIdk deleted the jpmsru3 branch June 10, 2022 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants