diff options
author | 2021-06-18 12:14:08 +0100 | |
---|---|---|
committer | 2021-06-18 13:14:08 +0200 | |
commit | d5869ecbdbe8fd82d316a269cc29b92e36358ea6 (patch) | |
tree | 63647f8904e17c7416ae3aa825e64b74c8801d26 | |
parent | 8f5a97a448986a43b1f07ff0c3602c31e55884b1 (diff) |
taitosj - add a postload so that savestates work (#8196)
-rw-r--r-- | src/mame/includes/taitosj.h | 1 | ||||
-rw-r--r-- | src/mame/video/taitosj.cpp | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mame/includes/taitosj.h b/src/mame/includes/taitosj.h index 158134f42cd..2264e5afd8f 100644 --- a/src/mame/includes/taitosj.h +++ b/src/mame/includes/taitosj.h @@ -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; diff --git a/src/mame/video/taitosj.cpp b/src/mame/video/taitosj.cpp index 91b7face6cd..09df075c62d 100644 --- a/src/mame/video/taitosj.cpp +++ b/src/mame/video/taitosj.cpp @@ -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() { |