made save_items to be global in cases where needed (nw)

This commit is contained in:
Miodrag Milanovic 2013-05-08 14:55:55 +00:00
parent 6a52173033
commit 59ff18b1d4
3 changed files with 7 additions and 7 deletions

View File

@ -205,8 +205,8 @@ VIDEO_START( adder2 )
machine.save().save_item(NAME(adder2_data_from_sc2));
machine.save().save_item(NAME(adder2_data_to_sc2));
state_save_register_item_array(machine, "Adder", NULL, 0, adder_ram);
state_save_register_item_2d_array(machine, "Adder", NULL, 0, adder_screen_ram);
machine.save().save_item(NAME(adder_ram));
machine.save().save_item(NAME(adder_screen_ram));
tilemap0 = tilemap_create(machine, get_tile0_info, TILEMAP_SCAN_ROWS, 8, 8, 50, 35);

View File

@ -211,8 +211,8 @@ TIMER_DEVICE_CALLBACK_MEMBER(junior_state::junior_update_leds)
void junior_state::machine_start()
{
state_save_register_item(machine(), "junior", NULL, 0, m_port_a );
state_save_register_item(machine(), "junior", NULL, 0, m_port_b );
save_item(NAME(m_port_a));
save_item(NAME(m_port_b));
}

View File

@ -312,9 +312,9 @@ TIMER_DEVICE_CALLBACK_MEMBER(kim1_state::kim1_update_leds)
void kim1_state::machine_start()
{
state_save_register_item(machine(), "kim1", NULL, 0, m_u2_port_b );
state_save_register_item(machine(), "kim1", NULL, 0, m_311_output );
state_save_register_item(machine(), "kim1", NULL, 0, m_cassette_high_count );
save_item(NAME(m_u2_port_b));
save_item(NAME(m_311_output));
save_item(NAME(m_cassette_high_count));
}