For those who use Mame with Freevo who find it annoying to see the extended game information (eg: rom set revision/version) in the games menu item name, here is some code to clean it up. NOTE: This still leaves all the detailed information about the game in the information area of Freevo.

in /usr/lib/python2.3/site-packages/freevo/games/mame_cache.py find the following and change yours to match:

for romfile in mame_files:
key = os.path.splitext(os.path.basename(romfile))[0]
if roms.has_key(key):
rom = roms[key]
info = { 'manufacturer': rom.manufacturer,
'name': rom.name,
'description': rom.description,
'year': rom.year,
'cloneof': rom.cloneof,
'romof': rom.romof }
if rom.description.find('(') == -1:
items += [(rom.description, romfile, None, info)]
else:
items += [(rom.description[:rom.description.find('(')], romfile, None, info)]
rm_files.append(romfile)
return (rm_files, items)





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to