diff options
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r-- | src/lib/util/options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c index 3b7fcfa200d..6b08cfb505e 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -618,9 +618,16 @@ void core_options::append_entry(core_options::entry &newentry) m_entrylist_tailptr = &newentry.m_next; // if we have names, add them to the map + astring tempstr; for (int name = 0; name < ARRAY_LENGTH(newentry.m_name); name++) if (newentry.m_name[name]) + { m_entrymap.add(newentry.m_name[name], &newentry); + + // for boolean options add a "no" variant as well + if (newentry.type() == OPTION_BOOLEAN) + m_entrymap.add(tempstr.cpy("no").cat(newentry.m_name[name]), &newentry); + } } |