summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/drawgfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/drawgfx.h')
-rw-r--r--src/emu/drawgfx.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/emu/drawgfx.h b/src/emu/drawgfx.h
index 43e0b85472f..96bdc592ab1 100644
--- a/src/emu/drawgfx.h
+++ b/src/emu/drawgfx.h
@@ -455,12 +455,17 @@ class gfxdecode_device : public device_t, public device_gfx_interface
{
public:
// construction/destruction
+ template <typename T>
+ gfxdecode_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&palette_tag, const gfx_decode_entry *gfxinfo)
+ : gfxdecode_device(mconfig, tag, owner, 0)
+ {
+ set_palette(std::forward<T>(palette_tag));
+ set_info(gfxinfo);
+ }
gfxdecode_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
protected:
virtual void device_start() override {}
};
-GFXDECODE_EXTERN(empty);
-
#endif // MAME_EMU_DRAWGFX_H