diff options
author | 2012-05-23 07:50:33 +0000 | |
---|---|---|
committer | 2012-05-23 07:50:33 +0000 | |
commit | 4ef49012af1ba5c505f6dcbc8327a316a881e907 (patch) | |
tree | f83feb15698aeeeeb8c9c3db26bc2875f60e99ce /src/lib/util/options.c | |
parent | 4580108461881099f6ecb64b0fc581c1dd13a01a (diff) |
Added support for fixed slots (used for MAME) and ability to create internal only slot options (for MESS) (no whatsnew)
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r-- | src/lib/util/options.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c index 88c173c1c65..1144bb1202e 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -575,6 +575,17 @@ const char *core_options::value(const char *name) const //------------------------------------------------- +// priority - return the priority of option +//------------------------------------------------- + +int core_options::priority(const char *name) const +{ + entry *curentry = m_entrymap.find(name); + return (curentry != NULL) ? curentry->priority() : 0; +} + + +//------------------------------------------------- // seqid - return the seqid for a given option //------------------------------------------------- |