mirror of
https://github.com/libretro/mame.git
synced 2024-12-11 19:53:49 +00:00
made save_items to be global in cases where needed (nw)
This commit is contained in:
parent
6a52173033
commit
59ff18b1d4
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user