2 Commits
Author SHA1 Message Date
SuspiciousActivity e073802c5a fix first start 2022-06-15 21:52:39 +02:00
SuspiciousActivity 118671e09f fix lang file download 2022-06-02 20:48:12 +02:00
+6
View File
@@ -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, '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'))
}
if (Test-Path (-join($savePath, 'url.txt'))) {
$lastPatchUrl = Get-Content -Path (-join($savePath, 'url.txt'))
}