diff --git a/src/frontend/mame/clifront.cpp b/src/frontend/mame/clifront.cpp index 227251b2d9d..c7a01674f47 100644 --- a/src/frontend/mame/clifront.cpp +++ b/src/frontend/mame/clifront.cpp @@ -202,7 +202,7 @@ void cli_frontend::start_execution(mame_machine_manager *manager, std::vectorsecond->seqid() : 0; -} - //------------------------------------------------- // exists - return if option exists in list //------------------------------------------------- @@ -702,16 +690,7 @@ bool core_options::exists(const char *name) const return (m_entrymap.find(name) != m_entrymap.end()); } -//------------------------------------------------- -// is_changed - return if option have been marked -// changed -//------------------------------------------------- -bool core_options::is_changed(const char *name) const -{ - auto curentry = m_entrymap.find(name); - return (curentry != m_entrymap.end()) ? curentry->second->is_changed() : false; -} //------------------------------------------------- // set_value - set the raw option value //------------------------------------------------- diff --git a/src/lib/util/options.h b/src/lib/util/options.h index 637481b12b2..edf7f8600c8 100644 --- a/src/lib/util/options.h +++ b/src/lib/util/options.h @@ -8,8 +8,8 @@ ***************************************************************************/ -#ifndef __OPTIONS_H__ -#define __OPTIONS_H__ +#ifndef MAME_LIB_UTIL_OPTIONS_H +#define MAME_LIB_UTIL_OPTIONS_H #include "corefile.h" #include @@ -81,7 +81,6 @@ public: const char *default_value() const { return m_defdata.c_str(); } const char *minimum() const { return m_minimum.c_str(); } const char *maximum() const { return m_maximum.c_str(); } - uint32_t seqid() const { return m_seqid; } int type() const { return (m_flags & OPTION_TYPE_MASK); } uint32_t flags() const { return m_flags; } bool is_header() const { return type() == OPTION_HEADER; } @@ -103,7 +102,6 @@ public: // internal state entry * m_next; // link to the next data uint32_t m_flags; // flags from the entry - uint32_t m_seqid; // sequence ID; bumped on each change bool m_error_reported; // have we reported an error on this option yet? int m_priority; // priority of the data set const char * m_description; // description for this item @@ -130,7 +128,7 @@ public: // getters entry *first() const { return m_entrylist.first(); } - const char *command() const { return m_command.c_str(); } + const std::string &command() const { return m_command; } entry *get_entry(const char *name) const; // range iterators @@ -165,9 +163,7 @@ public: bool bool_value(const char *name) const { return (atoi(value(name)) != 0); } int int_value(const char *name) const { return atoi(value(name)); } float float_value(const char *name) const { return atof(value(name)); } - uint32_t seqid(const char *name) const; bool exists(const char *name) const; - bool is_changed(const char *name) const; // setting bool set_value(const char *name, const char *value, int priority, std::string &error_string); @@ -210,4 +206,4 @@ private: -#endif /* __OPTIONS_H__ */ +#endif // MAME_LIB_UTIL_OPTIONS_H