Beispiel #1
0
 def test_yes(self):
     r = Runner('scummvm')
     for x in yes.keys():
         # print x
         g = dummy()
         g.name = x
         id = r.scummvm_id(g)
         if yes.get(x):
             self.assertEquals(id, yes.get(x))
Beispiel #2
0
 def test_yes(self):
     r = Runner('scummvm')
     for x in yes.keys():
         # print x
         g = dummy()
         g.name = x
         id = r.scummvm_id(g)
         if yes.get(x):
             self.assertEquals(id, yes.get(x))
Beispiel #3
0
 def test_no(self):
     r = Runner('scummvm')
     for x in no:
         # print x
         g = dummy()
         g.name = x
         # r.scummvm_id(g)
         self.assertRaises(AssertionError, r.scummvm_id, g)
Beispiel #4
0
def run(game, runner='auto'):
    if not game or not game.dir:
        print 'game is missing!'
        return
    if runner == 'auto':
        p = find_runner_plugin(game)
    else:
        p = Runner(runner)
        if not p:
            print runner + ' runner not found!'
            return 0
        if not check_emulator(p):
            return 0
    if not p:
        print 'no runner found! (game="{0}",platform={1})'.format(game.name, game.platform)
        return 0
    print 'running %s..\n' % game.name
    p.run_game(game)
    return 1
Beispiel #5
0
def run(game, runner='auto'):
    if not game or not game.dir:
        print 'game is missing!'
        return
    if runner == 'auto':
        p = find_runner_plugin(game)
    else:
        p = Runner(runner)
        if not p:
            print runner + ' runner not found!'
            return 0
        if not check_emulator(p):
            return 0
    if not p:
        print 'no runner found! (game="{0}",platform={1})'.format(
            game.name, game.platform)
        return 0
    print 'running %s..\n' % game.name
    p.run_game(game)
    return 1