Il txt prodotto nella cartella romlists è il frutto di quello che tu indichi nei settings dell'emulatore.
Il sorgente è fondamentale per avere il titolo corretto e nel caso del mame il suo xml è la cosa più affidabile rispetto ad uno scraping, poi ci sono anche extra files che puoi indicare.
Per chi non fosse confidente nel creare a linea di comando l'xml, a questo link
https://github.com/mamedev/mame/releases si possono scaricare i vari xml delle varie build mame.
Info source/ Scraper
You can use an online database (gamesdb) or listxml (xml files) for scraping information. If you use online scraper please make sure to scrape the information only as downloading artwork will take a long time and if the list is too long probably get stuck. So go to configure > Scraper and select No to every Artwork. Now go to Configure > Emulators > Emulator-Name > > Generate Collection/ Romlist and it will create a romlist scraping information from gamesdb.
Additional Import Files
For the moment only MAME supports these additional files. You can get Category field from catver.ini, Language field from language.ini, and Series field from series.ini. To use these files, open Attract-Mode go to Configure > Emulators > Emulator-Name > Additional import file(s) and add the full path to the file i.e. if catver.ini is in D:\games add D:\games\catver.ini. Use semicolon (;) before adding another file. You will have to regenerate the whole romlist so overwrite when asked.