small cleanup (nw)

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

View File

@ -75,16 +75,16 @@ static SOUND_START( generic )
{
cinemat_state *state = machine.driver_data<cinemat_state>();
/* register for save states */
machine.save().save_item(NAME(state->m_sound_control));
machine.save().save_item(NAME(state->m_current_shift));
machine.save().save_item(NAME(state->m_last_shift));
machine.save().save_item(NAME(state->m_last_shift2));
machine.save().save_item(NAME(state->m_current_pitch));
machine.save().save_item(NAME(state->m_last_frame));
machine.save().save_item(NAME(state->m_sound_fifo));
machine.save().save_item(NAME(state->m_sound_fifo_in));
machine.save().save_item(NAME(state->m_sound_fifo_out));
machine.save().save_item(NAME(state->m_last_portb_write));
state->save_item(NAME(state->m_sound_control));
state->save_item(NAME(state->m_current_shift));
state->save_item(NAME(state->m_last_shift));
state->save_item(NAME(state->m_last_shift2));
state->save_item(NAME(state->m_current_pitch));
state->save_item(NAME(state->m_last_frame));
state->save_item(NAME(state->m_sound_fifo));
state->save_item(NAME(state->m_sound_fifo_in));
state->save_item(NAME(state->m_sound_fifo_out));
state->save_item(NAME(state->m_last_portb_write));
}

View File

@ -258,8 +258,8 @@ MACHINE_CONFIG_END
static SOUND_START( astrob )
{
segag80r_state *state = machine.driver_data<segag80r_state>();
machine.save().save_item(NAME(state->m_sound_state));
machine.save().save_item(NAME(state->m_sound_rate));
state->save_item(NAME(state->m_sound_state));
state->save_item(NAME(state->m_sound_rate));
}

View File

@ -991,9 +991,9 @@ static void namcos1_driver_init( running_machine &machine, const struct namcos1_
state->m_paletteram = auto_alloc_array(machine, UINT8, 0x8000);
/* Register volatile user memory for save state */
machine.save().save_pointer(NAME(state->m_s1ram), 0x8000);
machine.save().save_pointer(NAME(state->m_triram), 0x800);
machine.save().save_pointer(NAME(state->m_paletteram), 0x8000);
state->save_pointer(NAME(state->m_s1ram), 0x8000);
state->save_pointer(NAME(state->m_triram), 0x800);
state->save_pointer(NAME(state->m_paletteram), 0x8000);
/* Point mcu & sound shared RAM to destination */
state->membank("bank18")->set_base(state->m_triram );