Example #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))
Example #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))
Example #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)
Example #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
Example #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