[mythtv] [PATCH] (MythGames) Automatic MAME image downloading

Steven Cruysberghs steven.cruysberghs at tiscali.be
Mon Feb 2 05:26:27 EST 2004


If you press F12 when playing a game (xmame) a screenshot is made and a
romname.png file is automaticly placed in your sreens folder.

Steven

> -----Oorspronkelijk bericht-----
> Van: mythtv-dev-bounces at mythtv.org 
> [mailto:mythtv-dev-bounces at mythtv.org] Namens mian
> Verzonden: maandag 2 februari 2004 8:56
> Aan: mythtv at mian.net.au; Development of mythtv
> Onderwerp: [mythtv] [PATCH] (MythGames) Automatic MAME image 
> downloading
> 
> 
> This patch adds 2 options to the MAME settings (misc 2) page. 
>  The first setting is the path to a MAME image downloader, 
> this can be a perl script preferably.  The program is passed 
> 3 arguments, the screenshot directory, the rom name and 
> finally the full game name.  The second checkbox, 
> automatically download missing images will launch the image 
> downloader when browsing the game tree, if an image does not 
> exist.  The database is utilized so the try is only attempted 
> once on each game, if you wish to force a re-download on a 
> game try something like
> 
> UPDATE mamemetadata SET image_searched=0 WHERE romname='1943';
> 
> for installation
> ALTER TABLE mamemetadata ADD image_searched tinyint(1) NOT 
> NULL DEFAULT 0; as I didn't want to touch the original 
> MythGame SQL files.
> 
> as you browse over games with missing screenshots for the 
> first time the mythfrontend screen will show output like
> Launching: /usr/bin/mame_imagedl 
> "/usr/share/games/xmame/screens" "1942" "1942 (set 1)"
> Launching: /usr/bin/mame_imagedl 
> "/usr/share/games/xmame/screens" "1943" "1943 - The Battle of 
> Midway (US)"
> 
> I don't actually remember enough Perl to write the image 
> downloader as yet :), can figure it out over time but my 
> weekend is almost up for playtime coding so I won't be able 
> to try till next week.  If anyone is experienced with Perl 
> and would like to write a script it would be welcomed.  The 
> idea is to search http://www.vgmuseum.com/test95.html for the 
> full game name then store the image as [screenshots]/[romname].jpg
> 
> --
> mian
> 



More information about the mythtv-dev mailing list