minor cleanup. nw.

This commit is contained in:
Fabio Priuli 2013-05-29 06:54:05 +00:00
parent 527c153e99
commit 608196c112
3 changed files with 4 additions and 4 deletions

View File

@ -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 )
{ {

View File

@ -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 )
{ {

View File

@ -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[] =