From a36a1ebcd0e5b69e7c17d40ac70b6752741767d8 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 26 Mar 2013 15:45:40 +0000 Subject: [PATCH] Placed m_source variable in device_t and filled it with provided value (nw) --- src/emu/device.c | 1 + src/emu/device.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/emu/device.c b/src/emu/device.c index 230bf60a0f9..28d9667b483 100644 --- a/src/emu/device.c +++ b/src/emu/device.c @@ -101,6 +101,7 @@ device_t::device_t(const machine_config &mconfig, device_type type, const char * m_name(name), m_shortname(shortname), m_searchpath(shortname), + m_source(source), m_owner(owner), m_next(NULL), diff --git a/src/emu/device.h b/src/emu/device.h index b0f80287479..3ac184db4ec 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -157,6 +157,7 @@ public: const char *name() const { return m_name; } const char *shortname() const { return m_shortname; } const char *searchpath() const { return m_searchpath; } + const char *source() const { return m_source; } device_t *owner() const { return m_owner; } device_t *next() const { return m_next; } UINT32 configured_clock() const { return m_configured_clock; } @@ -297,6 +298,7 @@ protected: astring m_name; // name of the device astring m_shortname; // short name of the device astring m_searchpath; // search path, used for media loading + astring m_source; // device source file name // device relationships device_t * m_owner; // device that owns us