mirror of
https://github.com/SuspiciousActivity/ValorantLanguageChanger.git
synced 2026-08-13 18:16:37 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f87059a4f | ||
|
|
3cfec102d4 | ||
|
|
fe6017240d |
@@ -1,7 +1,7 @@
|
||||
$savePath = "$($env:LOCALAPPDATA)/ValorantLangChanger/"
|
||||
$configPath = -join($savePath, 'config.csv')
|
||||
$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) {
|
||||
$hasher = new-object System.Security.Cryptography.MD5CryptoServiceProvider
|
||||
@@ -229,7 +229,7 @@ try {
|
||||
$lastPatchUrl = ''
|
||||
|
||||
# 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'))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user