Scripts version 2330

This commit is contained in:
Mikhail Tergoev
2024-07-30 13:18:50 +03:00
parent 1b613d7da0
commit 62d5a7fd5f
6 changed files with 45 additions and 10 deletions

View File

@ -1317,7 +1317,12 @@ pw_init_db () {
if [[ -f "${portwine_exe}" ]] ; then
PORTWINE_DB="$(basename "${portwine_exe}" .exe)"
export PORTWINE_DB
if [[ -f "${portwine_exe}".ppdb ]] ; then
if echo "${PORTWINE_DB}" | grep -i "_vo_\|_gv_" &>/dev/null ; then
print_warning "Force use gamesvoice.ppdb file!"
PORTWINE_DB_FILE="${PORT_SCRIPTS_PATH}/portwine_db/gamesvoice.ppdb"
# shellcheck source=/dev/null
source "${PORTWINE_DB_FILE}"
elif [[ -f "${portwine_exe}".ppdb ]] ; then
PORTWINE_DB_FILE="${portwine_exe}".ppdb
# shellcheck source=/dev/null
source "${PORTWINE_DB_FILE}"