This is great, thank you! Let me try it out today and then I can release a little version for you to test on your side.
I'm using a different parser to generate my controlsbuttons.ini file, but this might be an opportunity to incorporate this parser into Lightspeed, so the file is compatible with any version of MAME in the future. I will need to look at structural changes that might have happened in the support files as well (catver, nplayers, history.dat etc).