Update of /cvsroot/freevo/freevo/src/games
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5103/src/games

Modified Files:
        game.py genericitem.py genesisitem.py mame_cache.py 
        mame_types.py mameitem.py snesitem.py 
Log Message:
remove TRUE, FALSE, DEBUG and HELPER

Index: mame_types.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/mame_types.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** mame_types.py       10 Jul 2004 12:33:38 -0000      1.6
--- mame_types.py       8 Jan 2005 15:40:51 -0000       1.7
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.7  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.6  2004/07/10 12:33:38  dischi
  # header cleanup
***************
*** 53,63 ****
  TYPES_VERSION = 2
  
- # Set to 1 for debug output
- DEBUG = config.DEBUG
- 
- TRUE = 1
- FALSE = 0
- 
- 
  class MameRom:
  
--- 56,59 ----

Index: game.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/game.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** game.py     6 Oct 2004 19:19:13 -0000       1.19
--- game.py     8 Jan 2005 15:40:51 -0000       1.20
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.20  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.19  2004/10/06 19:19:13  dischi
  # use new childapp interface
***************
*** 61,68 ****
  import event as em
  
- DEBUG = config.DEBUG
- 
- TRUE  = 1
- FALSE = 0
  
  # Module variable that contains an initialized Game() object
--- 64,67 ----
***************
*** 103,109 ****
              plugin.getbyname('MIXER').reset()
  
-         if DEBUG:
-             print 'Game.play(): Starting thread, cmd=%s' % self.command
-         
        self.app=GameApp(self.command, stop_osd=1)
          self.prev_app = rc.app()
--- 102,105 ----

Index: mameitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/mameitem.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** mameitem.py 10 Jul 2004 12:33:38 -0000      1.21
--- mameitem.py 8 Jan 2005 15:40:51 -0000       1.22
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.22  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.21  2004/07/10 12:33:38  dischi
  # header cleanup
***************
*** 47,56 ****
  import rc
  
- # Set to 1 for debug output
- DEBUG = config.DEBUG
- 
- TRUE  = 1
- FALSE = 0
- 
  import menu
  import event as em
--- 50,53 ----
***************
*** 91,95 ****
            addargs = open(filename + '.mame').read().strip()
              command.extend(addargs.split())
!             if DEBUG: print 'Read additional options = "%s"' % addargs
  
          command.append(file)
--- 88,92 ----
            addargs = open(filename + '.mame').read().strip()
              command.extend(addargs.split())
!             print 'Read additional options = "%s"' % addargs
  
          command.append(file)

Index: genericitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/genericitem.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** genericitem.py      10 Jul 2004 12:33:38 -0000      1.8
--- genericitem.py      8 Jan 2005 15:40:51 -0000       1.9
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.9  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.8  2004/07/10 12:33:38  dischi
  # header cleanup
***************
*** 44,53 ****
  import game
  
- # Set to 1 for debug output
- DEBUG = config.DEBUG
- 
- TRUE  = 1
- FALSE = 0
- 
  import rc
  import time
--- 47,50 ----

Index: mame_cache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/mame_cache.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** mame_cache.py       8 Jan 2005 15:09:25 -0000       1.21
--- mame_cache.py       8 Jan 2005 15:40:51 -0000       1.22
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.22  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.21  2005/01/08 15:09:25  dischi
  # replace read_pickle and save_pickle with util.cache functions
***************
*** 62,72 ****
  from gui import PopupBox
  
- # Set to 1 for debug output
- DEBUG = config.DEBUG
- 
- TRUE = 1
- FALSE = 0
- 
- 
  #
  # Lets get a MameRomList if one is available from disk.  If not 
--- 65,68 ----
***************
*** 89,94 ****
                      'be reloaded') % (file_ver, mame_types.TYPES_VERSION))
          else:
!             if DEBUG:
!                 print 'Got MameRomList (version %s).' % file_ver
  
      if mameRomList == None:
--- 85,89 ----
                      'be reloaded') % (file_ver, mame_types.TYPES_VERSION))
          else:
!             print 'Got MameRomList (version %s).' % file_ver
  
      if mameRomList == None:
***************
*** 123,127 ****
      except:
          print 'Unable to get mame listinfo.'
!       return FALSE
  
      newRom = mame_types.MameRom()
--- 118,122 ----
      except:
          print 'Unable to get mame listinfo.'
!       return False
  
      newRom = mame_types.MameRom()
***************
*** 155,159 ****
      saveMameRomList(mameRomList)
  
!     return TRUE
  
  
--- 150,154 ----
      saveMameRomList(mameRomList)
  
!     return True
  
  

Index: genesisitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/genesisitem.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** genesisitem.py      10 Jul 2004 12:33:38 -0000      1.9
--- genesisitem.py      8 Jan 2005 15:40:51 -0000       1.10
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.10  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.9  2004/07/10 12:33:38  dischi
  # header cleanup
***************
*** 44,53 ****
  import game
  
- # Set to 1 for debug output
- DEBUG = config.DEBUG
- 
- TRUE  = 1
- FALSE = 0
- 
  import rc
  import time
--- 47,50 ----

Index: snesitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/games/snesitem.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** snesitem.py 10 Jul 2004 12:33:38 -0000      1.20
--- snesitem.py 8 Jan 2005 15:40:51 -0000       1.21
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.21  2005/01/08 15:40:51  dischi
+ # remove TRUE, FALSE, DEBUG and HELPER
+ #
  # Revision 1.20  2004/07/10 12:33:38  dischi
  # header cleanup
***************
*** 44,53 ****
  import game
  
- # Set to 1 for debug output
- DEBUG = config.DEBUG
- 
- TRUE  = 1
- FALSE = 0
- 
  import rc
  import time
--- 47,50 ----
***************
*** 231,235 ****
              # Break now if CHECKSUM is OK
              if (romICHK | romCHK) == 0xFFFF:
!                 if DEBUG:
                      print 'SNES rom header detected at offset : %d!!!!' % 
offset
                  break
--- 228,232 ----
              # Break now if CHECKSUM is OK
              if (romICHK | romCHK) == 0xFFFF:
!                 if 1:
                      print 'SNES rom header detected at offset : %d!!!!' % 
offset
                  break
***************
*** 247,251 ****
                  # Some times, the ROM is OK, but the checksum is incorrect, 
so we do a very dummy ASCII detection
                  if match('[a-zA-Z0-9 ]{4}', romName[0:4]) != None:
!                     if DEBUG:
                          print 'SNES rom header detected by ASCII name : 
%d!!!!' % offset
                      break
--- 244,248 ----
                  # Some times, the ROM is OK, but the checksum is incorrect, 
so we do a very dummy ASCII detection
                  if match('[a-zA-Z0-9 ]{4}', romName[0:4]) != None:
!                     if 1:
                          print 'SNES rom header detected by ASCII name : 
%d!!!!' % offset
                      break
***************
*** 254,258 ****
              os.unlink(unzipped)
  
!         if DEBUG:
              print 'SNES rom name : %s - %s -> %s' % 
(ord(romCountry),os.path.basename(file), romName)
  
--- 251,255 ----
              os.unlink(unzipped)
  
!         if 1:
              print 'SNES rom name : %s - %s -> %s' % 
(ord(romCountry),os.path.basename(file), romName)
  



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to