Bokurano Daibouken I is 32-bit.

Try to fix the custom launch options function.
This commit is contained in:
2025-09-11 16:04:18 -04:00
parent 1e3a368881
commit 0cf2145852
2 changed files with 18 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
download "https://www.nyanchangames.com/softs/nn_setup.exe" download "https://www.nyanchangames.com/softs/nn_setup.exe"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
export winVer="win7" export winVer="win7"
export WINEARCH="win32"
install_wine_bottle install_wine_bottle
install_with_progress 7z "Extracting game files..." x -o"$WINEPREFIX/drive_c/nyanchangame/bk" "${cache}/nn_setup.exe" 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" add_launcher "c:\nyanchangame\bk\play.exe"

View File

@@ -340,7 +340,7 @@ kill_game() {
# for games that require custom scripts before launch or custom launch parameters # for games that require custom scripts before launch or custom launch parameters
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 & "${0%/*}/speech/speak_window_title.sh" DragonPong.exe &
pushd "$(winepath "$winePath")" pushd "$(winepath "$winePath")"
wine "$wineExec" wine "$wineExec"
@@ -348,16 +348,16 @@ custom_launch_parameters() {
exit 0 exit 0
fi fi
# executioner's-rage: DLL replacement now handled by update_nvda_dlls() # 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 & "${0%/*}/speech/speak_window_title.sh" play.exe &
fi fi
if [[ "${game[0]}" == "bokurano-daibouken-2" ]]; then if [[ "${game[2]}" == "Bokurano Daibouken 2" ]]; then
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken2 & "${0%/*}/speech/clipboard_translator.sh" "${game[1]}" bokurano-daibouken2 &
fi fi
if [[ "${game[0]}" == "bokurano-daibouken" ]]; then if [[ "${game[2]}" == "Bokurano Daibouken" ]]; then
"${0%/*}/speech/clipboard_translator.sh" play.exe bokurano-daibouken & "${0%/*}/speech/clipboard_translator.sh" "${game[1]}" bokurano-daibouken &
fi fi
if [[ "${game[0]}" =~ "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 if [[ -r "${cache}/bk3-dict.dat" ]] && [[ ! -d "${dictPath}/dict" ]]; then
cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat" cp "${cache}/bk3-dict.dat" "${dictPath}/dict.dat"
@@ -365,44 +365,44 @@ custom_launch_parameters() {
# 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" ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
find "${WINEPREFIX}/drive_c/nyanchangame/bk3" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \; 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
fi fi
if [[ "${game[0]}" == "bop-it-emulator" ]]; then if [[ "${game[2]}" == "Bop It Emulator" ]]; then
"${0%/*}/speech/speak_window_title.sh" bop.exe & "${0%/*}/speech/speak_window_title.sh" bop.exe &
fi fi
if [[ "${game[0]}" == "road-to-rage" ]]; then if [[ "${game[2]}" == "Road to Rage" ]]; then
"${0%/*}/speech/speak_window_title.sh" trtr.exe & "${0%/*}/speech/speak_window_title.sh" trtr.exe &
fi fi
if [[ "${game[0]}" == "sequence-storm" ]]; then if [[ "${game[2]}" == "Sequence Storm" ]]; then
"${0%/*}/speech/clipboard_reader.sh" SequenceStorm & "${0%/*}/speech/clipboard_reader.sh" SequenceStorm &
fi 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 "{}" \; #find "${WINEPREFIX}/drive_c/" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \;
#"${0%/*}/speech/clipboard_translator.sh" play_sr.exe shadow-line & #"${0%/*}/speech/clipboard_translator.sh" play_sr.exe shadow-line &
#fi #fi
# sketchbook: DLL replacement now handled by update_nvda_dlls() # sketchbook: DLL replacement now handled by update_nvda_dlls()
if [[ "${game[0]}" == "audiodisc" ]]; then if [[ "${game[2]}" == "Audiodisc" ]]; then
wine "$winePath\\$wineExec" wine "$winePath\\$wineExec"
exit 0 exit 0
fi fi
if [[ "${game[0]}" == "audioquake" ]]; then if [[ "${game[2]}" == "Audioquake" ]]; then
wine "$winePath\\$wineExec" wine "$winePath\\$wineExec"
exit 0 exit 0
fi fi
if [[ "${game[0]}" == "screaming-strike-2" ]]; then if [[ "${game[2]}" == "Screaming Strike 2" ]]; then
pushd "$(winepath "$winePath")" pushd "$(winepath "$winePath")"
wine "$wineExec" wine "$wineExec"
popd popd
exit 0 exit 0
fi fi
if [[ "${game[0]}" == "warsim" ]]; then if [[ "${game[2]}" == "Warsim" ]]; then
pushd "$(winepath "${game[1]%\\*}")" pushd "$(winepath "${game[1]%\\*}")"
wine "${game[1]##*\\}" wine "${game[1]##*\\}"
popd popd
exit 0 exit 0
fi fi
if [[ "${game[0]}" == "interceptor" ]]; then if [[ "${game[2]}" == "Interceptor" ]]; then
pushd "$(winepath "$winePath")" pushd "$(winepath "$winePath")"
wine "$wineExec" wine "$wineExec"
popd popd