diff options
author | 2011-04-19 06:02:01 +0000 | |
---|---|---|
committer | 2011-04-19 06:02:01 +0000 | |
commit | d971ce8f36eb00f27da0c2ef8c8b280d568db58c (patch) | |
tree | 70f11c500fa64702e29c0a502ec1941bf8610625 /src/emu/inptport.h | |
parent | 3628e7eaedd083da8d876a618a0af8486b114c55 (diff) |
Privatized most of the m_machine pointers in the system to prevent
direct use.
Diffstat (limited to 'src/emu/inptport.h')
-rw-r--r-- | src/emu/inptport.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/inptport.h b/src/emu/inptport.h index 7f98c5092d2..5ee632fcccd 100644 --- a/src/emu/inptport.h +++ b/src/emu/inptport.h @@ -742,6 +742,7 @@ public: input_port_config *next() const { return m_next; } running_machine &machine() const { assert(m_machine != NULL); return *m_machine; } + void set_machine(running_machine &machine) { m_machine = &machine; } input_port_config * m_next; /* pointer to next port */ const char * tag; /* pointer to this port's tag */ @@ -749,9 +750,11 @@ public: /* these fields are only valid if the port is live */ input_port_state * state; /* live state of port (NULL if not live) */ - running_machine * m_machine; /* machine if port is live */ device_config * owner; /* associated device, when appropriate */ input_port_value active; /* mask of active bits in the port */ + +private: + running_machine * m_machine; /* machine if port is live */ }; |