Hopefully prevent bk3 from starting without the nvda2speech dll after importing dictionary files.

This commit is contained in:
Storm Dragon 2022-10-11 13:11:40 -04:00
parent e7bae395b4
commit 895541f802

View File

@ -788,6 +788,9 @@ game_launcher() {
cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat" cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat"
fi fi
if [[ -d "${dictPath}/dict" ]]; then if [[ -d "${dictPath}/dict" ]]; then
if [[ ! -e "${dictPath}/data/nvdaControllerClient.dll" ]]; then
cp "${cache}/nvda2speechd32.dll" "${dictPath}/data/nvdaControllerClient.dll"
fi
pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &
fi fi
if [[ ! -d "${dictPath}/dict" ]]; then if [[ ! -d "${dictPath}/dict" ]]; then