From 118671e09f21d8dbbdf24d9887ffcc8933a56996 Mon Sep 17 00:00:00 2001 From: SuspiciousActivity <38253929+SuspiciousActivity@users.noreply.github.com> Date: Thu, 2 Jun 2022 20:48:12 +0200 Subject: [PATCH] fix lang file download --- vallc.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vallc.ps1 b/vallc.ps1 index d66c563..e9d9fd6 100644 --- a/vallc.ps1 +++ b/vallc.ps1 @@ -227,6 +227,12 @@ if ($checkBefore) { Write-Host 'Checking for new language files...' -ForegroundColor DarkGray try { $lastPatchUrl = '' + + # check if both lang files exist, if not download + if (!(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')) + } + if (Test-Path (-join($savePath, 'url.txt'))) { $lastPatchUrl = Get-Content -Path (-join($savePath, 'url.txt')) }