Placed m_source variable in device_t and filled it with provided value (nw)

This commit is contained in:
Miodrag Milanovic 2013-03-26 15:45:40 +00:00
parent 051011971f
commit a36a1ebcd0
2 changed files with 3 additions and 0 deletions

View File

@ -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),

View File

@ -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