3 Commits
Author SHA1 Message Date
SuspiciousActivity 7f87059a4f Update Manifest Downloader 2026-05-30 23:34:22 +02:00
SuspiciousActivity 3cfec102d4 Update ManifestDownloader 2025-05-02 14:16:00 +02:00
SuspiciousActivity fe6017240d fix and statement 2022-07-01 14:58:56 +02:00
+2 -2
View File
@@ -1,7 +1,7 @@
$savePath = "$($env:LOCALAPPDATA)/ValorantLangChanger/" $savePath = "$($env:LOCALAPPDATA)/ValorantLangChanger/"
$configPath = -join($savePath, 'config.csv') $configPath = -join($savePath, 'config.csv')
$savePakPath = 'ShooterGame/Content/Paks/' $savePakPath = 'ShooterGame/Content/Paks/'
$manifestDownloaderUrl = 'https://github.com/Morilli/ManifestDownloader/releases/download/v1.8_fix1/ManifestDownloader.exe' $manifestDownloaderUrl = 'https://github.com/Morilli/ManifestDownloader/releases/download/v2.0_fix1/ManifestDownloader.exe'
function Get-Hash([string]$textToHash) { function Get-Hash([string]$textToHash) {
$hasher = new-object System.Security.Cryptography.MD5CryptoServiceProvider $hasher = new-object System.Security.Cryptography.MD5CryptoServiceProvider
@@ -229,7 +229,7 @@ try {
$lastPatchUrl = '' $lastPatchUrl = ''
# check if both lang files exist, if not download # check if both lang files exist, if not download
if (Test-Path (-join($savePath, 'url.txt')) -and (!(Test-Path (-join($savePath, $savePakPath, $config.textLang, '_Text-WindowsClient.pak'))) -or !(Test-Path (-join($savePath, $savePakPath, $config.voiceLang, '_Text-WindowsClient.pak'))))) { if ((Test-Path (-join($savePath, 'url.txt'))) -and (!(Test-Path (-join($savePath, $savePakPath, $config.textLang, '_Text-WindowsClient.pak'))) -or !(Test-Path (-join($savePath, $savePakPath, $config.voiceLang, '_Text-WindowsClient.pak'))))) {
Remove-Item (-join($savePath, 'url.txt')) Remove-Item (-join($savePath, 'url.txt'))
} }