direct config load in Mameit seems that there exist a command -debugscript (
see here)
probably it's possible to load this commands from textfile.
but I don't know how it works.
OR
read rom from romlist and load commands from Rating field tooSee similar here-Goto your romlist : your_AM_folder\romlists\your_emulator.txt
-there is something like this:
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons;Series;Language;Region;Rating
MyGame1;MyGame1;MyEmulator;;;Konami;Action, Fighting;1;;;;;;;MyGame1;;;;;;
MyGame2;MyGame2;MyEmulator;;;Konami;Action, Fighting;1;;;;;;;MyGame2;;;;;;
MyGame3;MyGame3;MyEmulator;;;Konami;Action, Fighting;1;;;;;;;MyGame3;;;;;;
-the last column is for Rating. Just add your command behind the correct romfile:
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons;Series;Language;Region;Rating
MyGame1;MyGame1;MyEmulator;;;Konami;Action, Fighting;1;;;;;;;MyGame1;;;;;;"\n\n\ng\n\n1\n1\n1"
MyGame2;MyGame2;MyEmulator;;;Konami;Action, Fighting;1;;;;;;;MyGame2;;;;;;"\n\n\nT\n\n1\n1\n1"
MyGame3;MyGame3;MyEmulator;;;Konami;Action, Fighting;1;;;;;;;MyGame3;;;;;;"\n\n\ni\n\n1\n1\n1"
-set this config in AM:
args pegasus -romimage1 "[romfilename]" -autoboot_command "[Rating]"
or
args pegasus -romimage1 "[romfilename]" -autoboot_command [Rating]
AM loads your rom and read the entry from "Rating"-field too