コード例 #1
0
ファイル: SkullMod.py プロジェクト: 0xFAIL/SkullMod
     else:
         print('lvl pack')
         print('Not implemented yet')
 if args['spr']:
     if args['do'] == 'unpack':
         spr = SPR(file)
         spr.read_spr()
         print("Done")
     else:
         print('spr pack')
         print('Not implemented yet')
 if args['dds']:
     if args['do'] == 'unpack':
         print("Unpacking DDS is slow, may take a while")
         dds = DDSReader(file)
         dds.check_destination()
         dds.write_png(dds.get_png_data())
         print("Done")
     else:
         print("Packing DDS is not implemented, use the NVidia Texture Tools")
 if args['pcx']:
     if args['do'] == 'unpack':
             pcx = PCXReader(file)
             pcx.check_destination()
             pcx.write_png(pcx.read_data(pcx.read_metadata())[0])
             print("Done")
     else:
         print('pcx pack')
         print("Not implemented use GIMP, Photoshop or other tools that can export pcx images")
 if args['spr_charselect']:
     if args['do'] == 'unpack':
コード例 #2
0
ファイル: SkullMod.py プロジェクト: tcd/SkullMod
     else:
         print('lvl pack')
         print('Not implemented yet')
 if args['spr']:
     if args['do'] == 'unpack':
         spr = SPR(file)
         spr.read_spr()
         print("Done")
     else:
         print('spr pack')
         print('Not implemented yet')
 if args['dds']:
     if args['do'] == 'unpack':
         print("Unpacking DDS is slow, may take a while")
         dds = DDSReader(file)
         dds.check_destination()
         dds.write_png(dds.get_png_data())
         print("Done")
     else:
         print(
             "Packing DDS is not implemented, use the NVidia Texture Tools"
         )
 if args['pcx']:
     if args['do'] == 'unpack':
         pcx = PCXReader(file)
         pcx.check_destination()
         pcx.write_png(pcx.read_data(pcx.read_metadata())[0])
         print("Done")
     else:
         print('pcx pack')
         print(