コード例 #1
0
def entry(isPublic, isSelectable, threadNum):

    log_utils.info("Curr Python Version::%s", config_utils.get_py_version())

    print(u"**********所有游戏**********")
    print(u"\t appID \t\t 游戏文件夹 \t\t 游戏名称 \n\n")

    games = config_utils.getAllGames()
    if games != None and len(games) > 0:
        for ch in games:
            print(u"\t %s \t\t %s \t\t\t%s" %
                  (ch['appID'], ch['appName'], ch['appDesc']))

    sys.stdout.write(u"请选择一个游戏(输入appID):")
    sys.stdout.flush()

    selectedGameID = raw_input()
    selectedGameID = str(selectedGameID)

    game = getGameByAppID(selectedGameID, games)

    log_utils.info("current selected game is %s(%s)", game['appName'],
                   game['appDesc'])

    if isSelectable:
        main.main(game, isPublic)
    else:
        main_thread.main(game, isPublic, threadNum)
コード例 #2
0
ファイル: packGame.py プロジェクト: WaitGodot/U8PackageTools
def entry(isPublic, isSelectable, threadNum, appID, target):

    log_utils.info("Curr Python Version::%s", config_utils.get_py_version())

    print(u"**********所有游戏**********")
    print(u"\t appID \t\t 游戏文件夹 \t\t 游戏名称 \n\n")

    games = config_utils.getAllGames()
    if games != None and len(games) > 0:
        for ch in games:
            print(u"\t %s \t\t %s \t\t\t%s" % (ch['appID'], ch['appName'], ch['appDesc']))

    sys.stdout.write(u"请选择一个游戏(输入appID):")
    sys.stdout.flush()

    selectedGameID = str(appID)

    game = getGameByAppID(selectedGameID, games)

    log_utils.info("current selected game is %s(%s)", game['appName'], game['appDesc'])

    if isSelectable:
        return main(game, isPublic, target)
    else:
        return main_thread.main(game, isPublic, threadNum)
コード例 #3
0
ファイル: games.py プロジェクト: panda1079/u8sdkweb
def entry(isPublic, isSelectable, threadNum, appID, channelName):

    #file_utils.printLogo()

    log_utils.info("Curr Python Version::%s", config_utils.get_py_version())
    log_utils.info("Curr U8SDK Version::%s", config_utils.getToolVersion())

    games = config_utils.getAllGames()

    selectedGameID = appID

    if selectedGameID is None:

        print(
            u"################################################################"
        )
        print(u"\t%-20s%-20s%-20s\n" % ("AppID", u"AppName", u"描述"))

        if games != None and len(games) > 0:
            for ch in games:
                print(u"\t%-20s%-20s%-20s" %
                      (ch['appID'], ch['appName'], ch['appDesc']))
                #print(u"\t %s \t\t %s \t\t\t%s" % (ch['appID'], ch['appName'], ch['appDesc']))

        print("")

        sys.stdout.write(u"请选择一个游戏(输入appID):")
        sys.stdout.flush()

        selectedGameID = input()
        selectedGameID = str(selectedGameID)

    game = getGameByAppID(selectedGameID, games)

    log_utils.info("current selected game is %s(%s)", game['appName'],
                   game['appDesc'])

    if isSelectable:
        main.main(game, isPublic, channelName)
    else:
        main_thread.main(game, isPublic, threadNum)
コード例 #4
0
def entry(isPublic, isSelectable, threadNum, appName, channelName):


    file_utils.printLogo()

    log_utils.info("Curr Python Version::%s", config_utils.get_py_version())
    log_utils.info("Curr U8SDK Version::%s", config_utils.getToolVersion())

    games = config_utils.getAllGames()

    selectedGameName = appName

    if selectedGameName is None:

        print(u"################################################################")
        print(u"\t%-20s%-20s%-20s\n" % ("AppID", u"AppName", u"描述"))

        
        if games != None and len(games) > 0:
            for ch in games:
                print(u"\t%-20s%-20s%-20s" % (ch['appID'], ch['appName'], ch['appDesc']))
                #print(u"\t %s \t\t %s \t\t\t%s" % (ch['appID'], ch['appName'], ch['appDesc']))

        print("")
        #sys.stdout.write(u"请选择一个游戏(输入appName):") (由于windows更新导致中文乱码改成英文打包,如果中文没问题之后可以改回来)
        sys.stdout.write(u"Please select a game(Input appName):")
        sys.stdout.flush()

        selectedGameName = raw_input()
        selectedGameName = str(selectedGameName)

    game = getGameByAppName(selectedGameName, games)

    log_utils.info("current selected game is %s(%s)", game['appName'], game['appDesc'])

    if isSelectable:
        main.main(game, isPublic, channelName)
    else:
        main_thread.main(game, isPublic, threadNum)