Add tool to convert rvz files to wbfs for hb
This commit is contained in:
parent
a544d40d3d
commit
abdfc240e0
17
convert-rvz-wbfs/convert.ps1
Normal file
17
convert-rvz-wbfs/convert.ps1
Normal file
@ -0,0 +1,17 @@
|
||||
# Converts all rvz files in the current directory to wbfs files
|
||||
# Warning: Removes the RVZ files after conversion if the -r argument is passed
|
||||
# Requires: dolphintool, wit
|
||||
|
||||
$files = Get-ChildItem -Filter *.rvz .
|
||||
foreach ($file in $files) {
|
||||
$name = $file.BaseName
|
||||
$rvz = $name + ".rvz"
|
||||
$iso = $name + ".iso"
|
||||
$wbfs = $name + ".wbfs"
|
||||
dolphintool convert -i $rvz -o $iso -f iso
|
||||
if ($args[0] -eq "-r") {
|
||||
Remove-Item $rvz
|
||||
}
|
||||
wit copy -B $iso $wbfs
|
||||
Remove-Item $iso
|
||||
}
|
Loading…
Reference in New Issue
Block a user