Attract-Mode Support > General

Feature suggestion: filter rule inherit

(1/1)

keilmillerjr:
It would be nice to add some sort of rule inheritance for filters to keep our config file DRY (Don't Repeat Yourself). See example below of how this could work.


--- Code: ---# Generated by Attract-Mode 1.4.0
#
list Arcade
layout               cools
romlist              mame
filter               All
rule                 Category not_contains *Mature*|BIOS|Casino|Fruit Machines|PinMAME|Quiz|Rhythm|Tabletop
rule                 CloneOf not_equals .+
rule                 Control contains 2-way|4-way|8-way|trackball
rule                 DisplayCount equals 1
rule                 Manufacturer not_contains <pirate>|<unknown>|<unlicensed>|bootleg|hack
rule                 Players equals 1P alt|1P sim|2P alt|2P sim|3P alt|4P alt|6P alt
rule                 Status equals good|imperfect
rule                 Year not_contains ?
filter               Favourites
rule                 Favourite equals 1
filter               Atari
rule                 Inherit from All
rule                 Manufacturer contains Atari

--- End code ---

The Atari filter would contain all of the rules from the All filter, as well as it's own.

cools:
This would be a fantastic addition.

raygun:
Ok, I'll add it to the list!

On a somewhat related noted, you can already specify default rules that get automatically added whenever a new filter gets created (just paste them from the attract.cfg file into the default-filter.cfg file in the config directory) which is useful in situations where you are always adding the same rules to every new filter created...

Navigation

[0] Message Index

Go to full version