mirror of
https://github.com/fail0verflow/hbc.git
synced 2024-11-04 17:15:13 +01:00
29 lines
448 B
Python
29 lines
448 B
Python
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys, os, os.path
|
||
|
import pywii as wii
|
||
|
|
||
|
wii.loadkeys()
|
||
|
|
||
|
isofile = sys.argv[1]
|
||
|
disc = wii.WiiDisc(isofile,readonly=True)
|
||
|
disc.showinfo()
|
||
|
|
||
|
partitions = disc.read_partitions()
|
||
|
|
||
|
parts = range(len(partitions))
|
||
|
|
||
|
try:
|
||
|
pnum = int(sys.argv[2])
|
||
|
partitions[pnum]
|
||
|
parts = [pnum]
|
||
|
except:
|
||
|
pass
|
||
|
|
||
|
for partno in parts:
|
||
|
part = wii.WiiCachedPartition(disc,partno)
|
||
|
part.showinfo()
|
||
|
pdat = wii.WiiPartitionData(part)
|
||
|
pdat.showinfo()
|
||
|
|