diff options
author | phulshof <pieter@towel42.nl> | 2018-01-07 05:51:02 +0100 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2018-01-07 15:51:02 +1100 |
commit | 1aaed4a64ef0783c73730036dfa40edff7f572cc (patch) | |
tree | bcbb305859cff571e00031fa5a1a5dcd69905b6b /src/emu/emuopts.h | |
parent | e359046b0c128ef4512de2d1b0801960add57826 (diff) |
Override and fallback options for artwork (#2908)
* Added fallback_artwork and override_artwork as MAME options to allow default artwork to be loaded.
* Removed debug testing code.
* - Allow loading of built-in layouts even if override_artwork is specified.
- Allow loading of fallback_artwork if only default view have been found.
- Fixed order of built-in layouts with regards to fallback_artwork as agreed upon the forums.
* Changed |= true to = true, and changed override artwork so it only checks for default.lay if the <machine name>.lay is not found.
Diffstat (limited to 'src/emu/emuopts.h')
-rw-r--r-- | src/emu/emuopts.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/emuopts.h b/src/emu/emuopts.h index e079b7082f1..ab220e99bba 100644 --- a/src/emu/emuopts.h +++ b/src/emu/emuopts.h @@ -102,6 +102,8 @@ #define OPTION_USE_BEZELS "use_bezels" #define OPTION_USE_CPANELS "use_cpanels" #define OPTION_USE_MARQUEES "use_marquees" +#define OPTION_FALLBACK_ARTWORK "fallback_artwork" +#define OPTION_OVERRIDE_ARTWORK "override_artwork" // core screen options #define OPTION_BRIGHTNESS "brightness" @@ -381,6 +383,8 @@ public: bool use_bezels() const { return bool_value(OPTION_USE_BEZELS); } bool use_cpanels() const { return bool_value(OPTION_USE_CPANELS); } bool use_marquees() const { return bool_value(OPTION_USE_MARQUEES); } + const char *fallback_artwork() const { return value(OPTION_FALLBACK_ARTWORK); } + const char *override_artwork() const { return value(OPTION_OVERRIDE_ARTWORK); } // core screen options float brightness() const { return float_value(OPTION_BRIGHTNESS); } |