tc0100scn.c: fixed postload, fixes cameltry save state regression (nw)

taitof2.c: killed anonymous timer while I was at it (nw)
This commit is contained in:
Ivan Vangelista 2015-05-18 19:44:40 +02:00
parent aa8c7eee25
commit 18e90bc313
3 changed files with 5 additions and 1 deletions

View file

@ -586,7 +586,7 @@ void taitof2_state::device_timer(emu_timer &timer, device_timer_id id, int param
INTERRUPT_GEN_MEMBER(taitof2_state::taitof2_interrupt)
{
timer_set(downcast<cpu_device *>(&device)->cycles_to_attotime(500), TIMER_TAITOF2_INTERRUPT6);
m_int6_timer->adjust(m_maincpu->cycles_to_attotime(500));
device.execute().set_input_line(5, HOLD_LINE);
}
@ -2836,6 +2836,7 @@ WRITE8_MEMBER(taitof2_state::cameltrya_porta_w)
MACHINE_START_MEMBER(taitof2_state,common)
{
m_int6_timer = timer_alloc(TIMER_TAITOF2_INTERRUPT6);
}
MACHINE_START_MEMBER(taitof2_state,f2)

View file

@ -96,6 +96,7 @@ public:
int m_nibble;
INT32 m_driveout_sound_latch;
INT32 m_oki_bank;
emu_timer *m_int6_timer;
/* devices */
required_device<cpu_device> m_maincpu;

View file

@ -446,6 +446,8 @@ void tc0100scn_device::postload()
{
set_layer_ptrs();
restore_scroll();
m_gfxdecode->gfx(m_txnum)->set_source((UINT8 *)m_char_ram);
m_tilemap[0][0]->mark_all_dirty();
m_tilemap[1][0]->mark_all_dirty();