From abdfc240e09725dee74e2aa5872ba5a9a5afb8c9 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Sat, 2 Dec 2023 23:39:29 -0400 Subject: [PATCH] Add tool to convert rvz files to wbfs for hb --- convert-rvz-wbfs/convert.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 convert-rvz-wbfs/convert.ps1 diff --git a/convert-rvz-wbfs/convert.ps1 b/convert-rvz-wbfs/convert.ps1 new file mode 100644 index 0000000..355f962 --- /dev/null +++ b/convert-rvz-wbfs/convert.ps1 @@ -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 +}