Starting to get my Freevo box in order.  I really want to build a new system
for it, but I have no patience so I just stuck my old server behind the TV.
The wife isn't too fond of the noise however, so it's not an always-on
machine right now..

Anyway, I just got xmame sorted, and discovered a problem when exiting a
game, Freevo bombs out with "NameError: global name 'mameKey' is not
defined".

My solution was to change mameKey to gameKey in Game_Thread
(src/games/game.py):

def cmd(self, command):
        print "In cmd going to do: " + command
        str = ''
        if command == 'config':
            str = gameKey('CONFIGMENU')
        elif command == 'pause':
            str = gameKey('PAUSE')
        elif command == 'reset':
            str = gameKey('RESET')
        elif command == 'exit':
            str = gameKey('EXIT')
        elif command == 'snapshot':
            str = gameKey('SNAPSHOT')

        self.app.write(str)

HTH,

Simon.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to