taitosj - add a postload so that savestates work (#8196)

This commit is contained in:
David Haywood 2021-06-18 12:14:08 +01:00 committed by GitHub
parent 8f5a97a448
commit d5869ecbdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -62,6 +62,7 @@ protected:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;
virtual void device_post_load() override;
private:
required_shared_ptr_array<uint8_t, 3> m_videoram;

View file

@ -161,6 +161,13 @@ void taitosj_state::compute_draw_order()
}
}
void taitosj_state::device_post_load()
{
m_gfxdecode->gfx(0)->mark_all_dirty();
m_gfxdecode->gfx(1)->mark_all_dirty();
m_gfxdecode->gfx(2)->mark_all_dirty();
m_gfxdecode->gfx(3)->mark_all_dirty();
}
void taitosj_state::video_start()
{