Update to fix themes folder not existing

This commit is contained in:
Isaac Shoebottom 2022-09-05 02:08:05 -03:00
parent 16248bc467
commit a25fadbc81
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Remove annoyance script v1.2.3 # Remove annoyance script v1.2.4
# For Vortex 1.5.4 / 1.5.5 / 1.5.6 # For Vortex 1.5.4 to 1.6.8
# Converted to executable with ps2exe (WIN-PS2EXE) (https://github.com/MScholtes/PS2EXE) # Converted to executable with ps2exe (WIN-PS2EXE) (https://github.com/MScholtes/PS2EXE)
# Compact Style String # Compact Style String
@ -349,6 +349,10 @@ else {
$VortexThemeFolder = $env:APPDATA + "\Vortex\themes\" $VortexThemeFolder = $env:APPDATA + "\Vortex\themes\"
} }
if (-Not (Test-Path -path $VortexThemeFolder)) {
New-Item -ItemType "directory" -Path $VortexThemeFolder -Force | Out-Null
}
if (Test-Path -path $VortexThemeFolder) { if (Test-Path -path $VortexThemeFolder) {
Do { Do {
Write-Host "Please pick your theme" Write-Host "Please pick your theme"
@ -450,8 +454,9 @@ if (Test-Path -path $VortexThemeFolder) {
Write-Host "" Write-Host ""
Write-Host "Have a good day :)" Write-Host "Have a good day :)"
Write-Host "Hit X or Enter"
Read-Host Read-Host
} else { } else {
Write-Host "Please make sure your vortex install has a themes folder (try cloning a theme first)" Write-Host "If you see this text, report it to me on nexus with details!"
} }

Binary file not shown.