> Mame/Mess licence bans commercial use and is also viral or am I missing something?
you can use the MAME source as reference to write your own implementation and release the latter under whatever license you want (only forks of MAME itself cannot be released under other licenses). with FourDO you cannot