예제 #1
0
    def __init__(self):
        try:
            message = "Update Titles database"

            progress_bar = progress_bar_window("Updating Titles", message, mode="indeterminate", maximum = 100, task = "Titles update")

            root.wait_visibility(progress_bar.progress)

            progress_bar.start_indeterminate()

            titles.update_title_db()

            progress_bar.progress_complete()

        except:
            raise Exception("Titles database could not be updated.")
예제 #2
0
파일: sky3ds.py 프로젝트: troyane/sky3ds.py
            print("Please confirm format operation with '-c'.")
            sys.exit(1)
        disk.format()

    if not args.update and not disk.is_sky3ds_disk:
        print("This is not a sky3ds disk. Aborting.")
        sys.exit(1)

    if args.remove != None:
        args.remove = int(args.remove)
        if args.remove in [i[0] for i in disk.rom_list]:
            disk.delete_rom(args.remove)
            print("Removed rom from slot %d" % args.remove)

    if args.update:
        titles.update_title_db()

    if args.backup != None and args.slot == None:
        print("Please specify slot")
        sys.exit(1)
    elif args.backup != None and args.slot != None:
        disk.dump_rom(int(args.slot), args.backup)

    if args.backup_savegame != None and args.slot == None:
        print("Please specify slot")
        sys.exit(1)
    elif args.backup_savegame != None and args.slot != None:
        disk.dump_savegame(int(args.slot), args.backup_savegame)

    if args.write_savegame != None:
        disk.write_savegame(args.write_savegame)
예제 #3
0
파일: sky3ds.py 프로젝트: j0el/sky3ds.py
            print("Please confirm format operation with '-c'.")
            sys.exit(1)
        disk.format()

    if not args.update and not disk.is_sky3ds_disk:
        print("This is not a sky3ds disk. Aborting.")
        sys.exit(1)

    if args.remove != None:
        args.remove = int(args.remove)
        if args.remove in [i[0] for i in disk.rom_list]:
            disk.delete_rom(args.remove)
            print("Removed rom from slot %d" % args.remove)

    if args.update:
        titles.update_title_db()

    if args.backup != None and args.slot == None:
        print("Please specify slot")
        sys.exit(1)
    elif args.backup != None and args.slot != None:
        disk.dump_rom(int(args.slot), args.backup)

    if args.backup_savegame != None and args.slot == None:
        print("Please specify slot")
        sys.exit(1)
    elif args.backup_savegame != None and args.slot != None:
        disk.dump_savegame(int(args.slot), args.backup_savegame)

    if args.write_savegame != None:
        disk.write_savegame(args.write_savegame)