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

taito/gladiatr.cpp: Use set_format for palette format, Minor cleanups #11859

Merged
merged 2 commits into from Dec 20, 2023

Conversation

cam900
Copy link
Contributor

@cam900 cam900 commented Dec 20, 2023

Remove VIDEO_START_MEMBER and MACHINE_RESET_MEMBER, use video_start() and machine_reset() overrides instead. Reduce runtime tag lookups
Rename gfx regions for consistent.

Remove VIDEO_START_MEMBER and MACHINE_RESET_MEMBER, use video_start() and machine_reset() overrides instead.
Reduce runtime tag lookups
Rename gfx regions for consistent.
membank("bank2")->set_entry((data & 0x40) ? 1 : 0);
m_adpcmbank->set_entry(BIT(data, 6) ? 1 : 0);
Copy link
Member

Choose a reason for hiding this comment

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

This is somewhat redundant now – if you’re using the BIT helper, you can just do m_adpcmbank->set_entry(BIT(data, 6));

//membank("bank2")->set_entry((data & 0x40) ? 1 : 0);
//m_adpcmbank->set_entry(BIT(data, 6) ? 1 : 0);
Copy link
Member

Choose a reason for hiding this comment

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

Same here – the BIT helper extracts the bit so it will produce 1 or 0 anyway.

@cuavas cuavas merged commit b23305b into mamedev:master Dec 20, 2023
2 of 5 checks passed
einstein95 pushed a commit to einstein95/mame that referenced this pull request Mar 2, 2024
…amedev#11859)

* Removed VIDEO_START_MEMBER and MACHINE_RESET_MEMBER (override virtual member functions instead).
* Reduced run-time tag lookups.
* Made graphics region tags more descriptive.
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