-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
SomeRandomGuyIdk
commented
May 30, 2022
- Added a new game, Lucky Casino
- Added 50p slot and lockout to Super 2
src/mame/drivers/jpmsru.cpp
Outdated
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Take Win") | ||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Take Half") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
src/mame/mame.lst
Outdated
j_goldn2 // Golden 2's (CTL) | ||
j_sup2p // Super 2p Shuffle (MDM) | ||
j_la // Lucky Aces | ||
j_lc // Lucky Casino (JPM) | ||
j_lca // |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
src/mame/drivers/jpmsru.cpp
Outdated
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.