[mythtv-users] How to add screenshots in Mythgame?
Jochen Kühner
jochen.kuehner at gmx.de
Thu Jun 22 13:05:32 UTC 2006
There is also a ticket created by me, wich should automaticaly generate
screenshots via the program scrot.
ANd it improves the display of the screenshot delaying the loading of them
about 300msec so that you can browse fast through your roms even if you have
screenshots!
----- Original Message -----
From: "Bert Santema" <atsantema at yahoo.com>
To: "Discussion about mythtv" <mythtv-users at mythtv.org>
Sent: Thursday, June 22, 2006 1:43 PM
Subject: Re: [mythtv-users] How to add screenshots in Mythgame?
I'll answer my own question after debugging the code.
It seems that mythgame first strips the file extension by chopping off
everything after the last .
(dot) in the filename (of the game in question). It then cycles through this
list of image format
extensions to see if appending any of those result in an existing file (in
the screenshot
directory):
png
gif
jpg
jpeg
xpm
bmp
pnm
tif
tiff
The reason my screenshots didn't get picked up was because it concerned
multiple disk games. For
these games, the filenames of the disk are different from the game name
because the disk number is
included. In order to make it work I had to specify the screenshot filename
with the disknumber
included.
However, currently Mythgame does not specify specifically which disk
(filename) it will use of the
ones available for that game. In case of Amiga games, this also mostly
results in the wrong disk
being loaded in the emulator. I submitted a patch 1983
(http://svn.mythtv.org/trac/ticket/1983)
for that problem, which also fixes the screenshot problem (because it now
selects specifically the
first disk or rather the disk with the highest diskcount).
Hope this helps for others as well.
Cheers,
Bert
--- Bert Santema <atsantema at yahoo.com> wrote:
> Mythgame is great! I got xmame, amiga and pc games working with two usb
> controllers and it's a
> blast. However, I can't seem to understand how to add screenshots. It
> works for xmame games (I
> downloaded a pack of snaps that was listed in a guide somewhere), but if I
> add one for any other
> game (tried both jpg and png) it just gets ignored. Are there special
> requirements (filesize,
> imagesize, ?) or is it only working for xmame at the moment? I searched
> the myth database, but
> individual screenshots do not seem to be recorded in it.
>
> Cheers,
> Bert
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list