Fixed BK3.
This commit is contained in:
@@ -18,5 +18,10 @@ if [[ "${#dictFile}" -ge 3 ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
|
|||||||
fi
|
fi
|
||||||
if [[ -f "${cache}/bk3-dict.dat" ]] ; then
|
if [[ -f "${cache}/bk3-dict.dat" ]] ; then
|
||||||
cp -fv "${cache}/bk3-dict.dat" "${WINEPREFIX}/drive_c/nyanchangame/bk3/dict.dat"
|
cp -fv "${cache}/bk3-dict.dat" "${WINEPREFIX}/drive_c/nyanchangame/bk3/dict.dat"
|
||||||
|
if [[ -f "${cache}/nvdaControllerClient32.dll" ]] ; then
|
||||||
|
cp -fv "${cache}/nvdaControllerClient32.dll" "${WINEPREFIX}/drive_c/nyanchangame/bk3/data/nvdaControllerClient32.dll"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
rm -fv "${WINEPREFIX}/drive_c/nyanchangame/bk3/data/nvdaControllerClient32.dll"
|
||||||
fi
|
fi
|
||||||
add_launcher "c:\nyanchangame\bk3\play.exe"
|
add_launcher "c:\nyanchangame\bk3\play.exe"
|
||||||
|
|||||||
@@ -330,12 +330,20 @@ custom_launch_parameters() {
|
|||||||
fi
|
fi
|
||||||
if [[ "${game[2]}" == "Bokurano Daibouken 3" ]]; then
|
if [[ "${game[2]}" == "Bokurano Daibouken 3" ]]; then
|
||||||
dictPath="$(winepath "${winePath}")"
|
dictPath="$(winepath "${winePath}")"
|
||||||
if [[ -r "${cache}/bk3-dict.dat" ]] && [[ ! -d "${dictPath}/dict" ]]; then
|
dataDir="${WINEPREFIX}/drive_c/nyanchangame/bk3/data"
|
||||||
cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat"
|
if [[ -r "${cache}/bk3-dict.dat" ]]; then
|
||||||
|
if [[ ! -d "${dictPath}/dict" ]]; then
|
||||||
|
cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat"
|
||||||
|
fi
|
||||||
|
if [[ -r "${cache}/nvdaControllerClient32.dll" ]]; then
|
||||||
|
cp "${cache}/nvdaControllerClient32.dll" "${dataDir}/nvdaControllerClient32.dll"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
rm -f "${dataDir}/nvdaControllerClient32.dll"
|
||||||
|
find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \;
|
||||||
fi
|
fi
|
||||||
# DLL replacement now handled by update_nvda_dlls()
|
# DLL replacement now handled by update_nvda_dlls()
|
||||||
if [[ ! -d "${dictPath}/dict" ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
|
if [[ ! -d "${dictPath}/dict" ]]; then
|
||||||
find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \;
|
|
||||||
"${scriptDir}/speech/clipboard_translator.sh" "play.exe" bokurano-daibouken3 &
|
"${scriptDir}/speech/clipboard_translator.sh" "play.exe" bokurano-daibouken3 &
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -515,6 +523,9 @@ game_launcher() {
|
|||||||
wine --version
|
wine --version
|
||||||
# kill any previous existing wineservers for this prefix in case they didn't shut down properly.
|
# kill any previous existing wineservers for this prefix in case they didn't shut down properly.
|
||||||
wineserver -k
|
wineserver -k
|
||||||
|
# Set default path/exec for custom launch handlers.
|
||||||
|
winePath="${game[1]%\\*.exe}"
|
||||||
|
wineExec="${game[1]##*\\}"
|
||||||
# launch the game
|
# launch the game
|
||||||
if command -v qjoypad &> /dev/null ; then
|
if command -v qjoypad &> /dev/null ; then
|
||||||
mkdir -p ~/.qjoypad3
|
mkdir -p ~/.qjoypad3
|
||||||
|
|||||||
Reference in New Issue
Block a user