https://github.com/Jakobud/configgeneratorI made this plugin for MAME recently. Posting it here for posterity.
This plugin will generate .cfg files for your games. Similar to the ones that MAME already generates but they are "improved". When you exit a MAME game, MAME generates a .cfg file for the current values of the controls and dipswitches for that game.
The only problem is that it only records non-default values into the .cfg file. For example if you open a game and leave all controls at default and then exit it will generate a .cfg file but it will be mostly empty because all the controls and dipswitches are still at their default values.
This plugin I made will generate a similar .cfg file but it will include all values and all dipswitch values whether or not they are default or if you have customized them.
This plugin will also take into account if you have specified a CTRLR file to use. For example if you override controls using a CTRLR file, the .cfg generated by my plugin will use those CTRLR values when creating the .cfg file. This is something MAME does not do with it's .cfg files.
This plugin can also output the .cfg files to a custom directory and generate them when the game starts or ends or both.
Anyways, this plugin is most likely useless to 99% of the MAME community but could be useful when paired with tools like CFG Magician or LEDBlinky. Or maybe there is some other way someone could utilize it. Just posting it here to create visibility of it.
Cheers,