fabulously-optimized/Packwiz/post-exit.ps1
Ultrasonic1209 9bc287f27f
Add pre-launch and post-exit powershell scripts (#307)
* Add files via upload

* cleanup

* a

* Update post-exit.ps1

* parity

* Update pre-launch.ps1

Co-authored-by: Madis Otenurm <Madis0@users.noreply.github.com>
2022-05-23 20:56:20 +03:00

13 lines
420 B
PowerShell

# By Ultrasonic1209
# Restore packwiz disabled mods to prevent useless redownload
Write-Output "Restoring overridden mods for future launches..."
Set-Location ".\mods"
$mods = Get-ChildItem *.jar.disabled
foreach ( $mod in $mods ) {
Move-Item -Path $mod.name -Destination ($mod.FullName).Replace(".disabled","") -Force
Write-Output "$($mod.name.Replace(".disabled", '')) restored successfully!"
}