Update of /cvsroot/freevo/freevo/src/games
In directory sc8-pr-cvs1:/tmp/cvs-serv32690/src/games

Modified Files:
        mameitem.py 
Log Message:
Adding support for a seperate directory for screen/titleshots.  They show 
up in the MAME menu like album covers do in the audio menu.


Index: mameitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/mameitem.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** mameitem.py 1 Jun 2003 05:06:40 -0000       1.10
--- mameitem.py 20 Jun 2003 01:31:14 -0000      1.11
***************
*** 10,13 ****
--- 10,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.11  2003/06/20 01:31:14  rshortt
+ # Adding support for a seperate directory for screen/titleshots.  They show
+ # up in the MAME menu like album covers do in the audio menu.
+ #
  # Revision 1.10  2003/06/01 05:06:40  outlyer
  # Fixed a missing import as pointed out by Paul de Bruin
***************
*** 83,90 ****
          # find image for this file
          if image == None:
!             if os.path.isfile(os.path.splitext(file)[0] + ".png"):
                  self.image = os.path.splitext(file)[0] + ".png"
-             elif os.path.isfile(os.path.splitext(file)[0] + ".jpg"):
-                 self.image = os.path.splitext(file)[0] + ".jpg"
  
          command = '--prio=%s %s %s' % (config.GAMES_NICE,
--- 87,96 ----
          # find image for this file
          if image == None:
!           shot = config.MAME_SHOTS + '/' + \
!                  os.path.splitext(os.path.basename(file))[0] + ".png"
!             if os.path.isfile(shot):
!                 self.image = shot
!             elif os.path.isfile(os.path.splitext(file)[0] + ".png"):
                  self.image = os.path.splitext(file)[0] + ".png"
  
          command = '--prio=%s %s %s' % (config.GAMES_NICE,




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to