mirror of
https://github.com/holub/mame
synced 2025-04-28 19:14:55 +03:00
minor cleanup. nw.
This commit is contained in:
parent
527c153e99
commit
608196c112
@ -585,7 +585,7 @@ DEVICE_IMAGE_LOAD_MEMBER( a2600_state, a2600_cart )
|
|||||||
{
|
{
|
||||||
memcpy(cart, image.get_software_region("rom"), m_cart_size);
|
memcpy(cart, image.get_software_region("rom"), m_cart_size);
|
||||||
|
|
||||||
const char *mapper = software_part_get_feature((software_part*)image.part_entry(), "mapper");
|
const char *mapper = image.get_feature("mapper");
|
||||||
|
|
||||||
if ( mapper != NULL )
|
if ( mapper != NULL )
|
||||||
{
|
{
|
||||||
|
@ -493,7 +493,7 @@ DEVICE_IMAGE_LOAD_MEMBER(microvision_state,microvision_cart)
|
|||||||
m_rc_type = microvision_state::RC_TYPE_UNKNOWN;
|
m_rc_type = microvision_state::RC_TYPE_UNKNOWN;
|
||||||
|
|
||||||
// Detect settings for PCB type
|
// Detect settings for PCB type
|
||||||
const char *pcb = software_part_get_feature((software_part*)image.part_entry(), "pcb");
|
const char *pcb = image.get_feature("pcb");
|
||||||
|
|
||||||
if ( pcb != NULL )
|
if ( pcb != NULL )
|
||||||
{
|
{
|
||||||
@ -515,7 +515,7 @@ DEVICE_IMAGE_LOAD_MEMBER(microvision_state,microvision_cart)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Detect settings for RC types
|
// Detect settings for RC types
|
||||||
const char *rc = software_part_get_feature((software_part*)image.part_entry(), "rc");
|
const char *rc = image.get_feature("rc");
|
||||||
|
|
||||||
if ( rc != NULL )
|
if ( rc != NULL )
|
||||||
{
|
{
|
||||||
|
@ -94,7 +94,7 @@ DEVICE_IMAGE_LOAD_MEMBER(msx_state,msx_cart)
|
|||||||
/* Load software from software list */
|
/* Load software from software list */
|
||||||
/* TODO: Add proper SRAM (size) handling */
|
/* TODO: Add proper SRAM (size) handling */
|
||||||
|
|
||||||
const char *mapper = software_part_get_feature((software_part*)image.part_entry(), "mapper");
|
const char *mapper = image.get_feature("mapper");
|
||||||
if (mapper != NULL)
|
if (mapper != NULL)
|
||||||
{
|
{
|
||||||
static const struct { const char *mapper_name; int mapper_type; } mapper_types[] =
|
static const struct { const char *mapper_name; int mapper_type; } mapper_types[] =
|
||||||
|
Loading…
Reference in New Issue
Block a user