Remember Me
In RetroPie 2.4 beta, the config file is held here (for mame4all) /opt/retropie/configs/mame4all/cfg
but this is not editable with a text editor.
To edit mame controls you do it in the GUI like this