Bokurano Daibouken I is 32-bit.
Try to fix the custom launch options function.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
download "https://www.nyanchangames.com/softs/nn_setup.exe"
|
||||
# Uses standard wine path based on architecture (win32/win64)
|
||||
export winVer="win7"
|
||||
export WINEARCH="win32"
|
||||
install_wine_bottle
|
||||
install_with_progress 7z "Extracting game files..." x -o"$WINEPREFIX/drive_c/nyanchangame/bk" "${cache}/nn_setup.exe"
|
||||
add_launcher "c:\nyanchangame\bk\play.exe"
|
||||
|
@@ -340,7 +340,7 @@ kill_game() {
|
||||
|
||||
# for games that require custom scripts before launch or custom launch parameters
|
||||
custom_launch_parameters() {
|
||||
if [[ "${game[0]}" == "dragon-pong" ]]; then
|
||||
if [[ "${game[2]}" == "Dragon Pong" ]]; then
|
||||
"${0%/*}/speech/speak_window_title.sh" DragonPong.exe &
|
||||
pushd "$(winepath "$winePath")"
|
||||
wine "$wineExec"
|
||||
@@ -348,16 +348,16 @@ custom_launch_parameters() {
|
||||
exit 0
|
||||
fi
|
||||
# executioner's-rage: DLL replacement now handled by update_nvda_dlls()
|
||||
if [[ "${game[0]}" == "laser-breakout" ]]; then
|
||||
if [[ "${game[2]}" == "Laser Breakout" ]]; then
|
||||
"${0%/*}/speech/speak_window_title.sh" play.exe &
|
||||
fi
|
||||
if [[ "${game[0]}" == "bokurano-daibouken-2" ]]; then
|
||||
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken2 &
|
||||
if [[ "${game[2]}" == "Bokurano Daibouken 2" ]]; then
|
||||
"${0%/*}/speech/clipboard_translator.sh" "${game[1]}" bokurano-daibouken2 &
|
||||
fi
|
||||
if [[ "${game[0]}" == "bokurano-daibouken" ]]; then
|
||||
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken &
|
||||
if [[ "${game[2]}" == "Bokurano Daibouken" ]]; then
|
||||
"${0%/*}/speech/clipboard_translator.sh" "${game[1]}" bokurano-daibouken &
|
||||
fi
|
||||
if [[ "${game[0]}" =~ "bokurano-daibouken-3" ]]; then
|
||||
if [[ "${game[2]}" == "Bokurano Daibouken 3" ]]; then
|
||||
dictPath="$(winepath "${winePath}")"
|
||||
if [[ -r "${cache}/bk3-dict.dat" ]] && [[ ! -d "${dictPath}/dict" ]]; then
|
||||
cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat"
|
||||
@@ -365,44 +365,44 @@ custom_launch_parameters() {
|
||||
# DLL replacement now handled by update_nvda_dlls()
|
||||
if [[ ! -d "${dictPath}/dict" ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
|
||||
find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \;
|
||||
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken3 &
|
||||
"${0%/*}/speech/clipboard_translator.sh" "${game[1]}" bokurano-daibouken3 &
|
||||
fi
|
||||
fi
|
||||
if [[ "${game[0]}" == "bop-it-emulator" ]]; then
|
||||
if [[ "${game[2]}" == "Bop It Emulator" ]]; then
|
||||
"${0%/*}/speech/speak_window_title.sh" bop.exe &
|
||||
fi
|
||||
if [[ "${game[0]}" == "road-to-rage" ]]; then
|
||||
if [[ "${game[2]}" == "Road to Rage" ]]; then
|
||||
"${0%/*}/speech/speak_window_title.sh" trtr.exe &
|
||||
fi
|
||||
if [[ "${game[0]}" == "sequence-storm" ]]; then
|
||||
if [[ "${game[2]}" == "Sequence Storm" ]]; then
|
||||
"${0%/*}/speech/clipboard_reader.sh" SequenceStorm &
|
||||
fi
|
||||
#if [[ "${game[0]}" == "shadow-line" ]]; then
|
||||
#if [[ "${game[2]}" == "Shadow Line" ]]; then
|
||||
#find "${WINEPREFIX}/drive_c/" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \;
|
||||
#"${0%/*}/speech/clipboard_translator.sh" play_sr.exe shadow-line &
|
||||
#fi
|
||||
# sketchbook: DLL replacement now handled by update_nvda_dlls()
|
||||
if [[ "${game[0]}" == "audiodisc" ]]; then
|
||||
if [[ "${game[2]}" == "Audiodisc" ]]; then
|
||||
wine "$winePath\\$wineExec"
|
||||
exit 0
|
||||
fi
|
||||
if [[ "${game[0]}" == "audioquake" ]]; then
|
||||
if [[ "${game[2]}" == "Audioquake" ]]; then
|
||||
wine "$winePath\\$wineExec"
|
||||
exit 0
|
||||
fi
|
||||
if [[ "${game[0]}" == "screaming-strike-2" ]]; then
|
||||
if [[ "${game[2]}" == "Screaming Strike 2" ]]; then
|
||||
pushd "$(winepath "$winePath")"
|
||||
wine "$wineExec"
|
||||
popd
|
||||
exit 0
|
||||
fi
|
||||
if [[ "${game[0]}" == "warsim" ]]; then
|
||||
if [[ "${game[2]}" == "Warsim" ]]; then
|
||||
pushd "$(winepath "${game[1]%\\*}")"
|
||||
wine "${game[1]##*\\}"
|
||||
popd
|
||||
exit 0
|
||||
fi
|
||||
if [[ "${game[0]}" == "interceptor" ]]; then
|
||||
if [[ "${game[2]}" == "Interceptor" ]]; then
|
||||
pushd "$(winepath "$winePath")"
|
||||
wine "$wineExec"
|
||||
popd
|
||||
|
Reference in New Issue
Block a user