def launch_game(game_tuple):
close_curses()
print('RUNNING: ' + str(game_tuple))
system = game_tuple[0]
game = game_tuple[1]
full_path = os.path.join(path_to_games, system, game)
args = config.get(SECTION, 'run_'+system).format(full_path)
origWD = os.getcwd()
os.chdir(os.path.dirname(CONFIG_FILE))
try:
subprocess.call(args, shell=True)
except KeyboardInterrupt:
pass
os.chdir(origWD)
init_curses()
curses.flushinp()
search_window.draw()
game_menu.draw()
评论列表
文章目录