Beispiel #1
0
	def on_compress(self):
		nut.compressAll(Config.compression.level)
Beispiel #2
0
Datei: nut.py Projekt: blawar/nut
                    except BaseException as e:
                        Print.info('error moving: ' + str(e))
                        traceback.print_exc(file=sys.stdout)
                        raise

                Config.extractVersion = prev

                Nsps.save()

            if args.export_nca_map:
                exportNcaMap(args.export_nca_map)

            if args.compress_all:
                nut.initTitles()
                nut.initFiles()
                nut.compressAll(19 if args.level is None else args.level)

            if args.decompress_all:
                nut.decompressAll()

            if args.extract_nca_meta is not None:
                nut.extractNcaMeta(args.extract_nca_meta)

            if args.organize:
                nut.initTitles()
                nut.initFiles()
                nut.organize()

            if args.export:
                nut.initTitles()
                nut.initFiles()