Author: duncan
Date: Mon Dec 4 16:19:13 2006
New Revision: 8695
Modified:
branches/rel-1/freevo/src/games/game.py
Log:
If JOY_DEV is not defined, game crashed
This is a fix to prevent the crash.
Modified: branches/rel-1/freevo/src/games/game.py
==============================================================================
--- branches/rel-1/freevo/src/games/game.py (original)
+++ branches/rel-1/freevo/src/games/game.py Mon Dec 4 16:19:13 2006
@@ -90,7 +90,10 @@
plugin.getbyname('MIXER').reset()
if plugin.is_active('joy'):
- plugin.getbyname('JOY').enable(FALSE)
+ try:
+ plugin.getbyname('JOY').enable(FALSE)
+ except Exception, e:
+ print 'getbyname(\'JOY\')', e
if DEBUG:
print 'Game.play(): Starting thread, cmd=%s' % self.command
@@ -104,7 +107,10 @@
self.app.stop()
rc.app(None)
if plugin.is_active('joy'):
- plugin.getbyname('JOY').enable(TRUE)
+ try:
+ plugin.getbyname('JOY').enable(TRUE)
+ except Exception, e:
+ print 'getbyname(\'JOY\')', e
def eventhandler(self, event, menuw=None):
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog