23 lines
1.3 KiB
Bash
23 lines
1.3 KiB
Bash
# Source dialog interface wrapper
|
|
source "${0%/*}/../.includes/dialog-interface.sh"
|
|
|
|
if [[ ! -r "${cache}/bk3-dict.dat" ]]; then
|
|
echo "http://www.nyanchangames.com/order/bk3translate.html" | xclip -selection clipboard 2> /dev/null
|
|
agm_msgbox "Bokurano Daibouken 3" "Bokurano Daibouken 3" "If you would like English translations, the file is available at http://www.nyanchangames.com/order/bk3translate.html. Save the dict.dat file to your Downloads or Desktop directory. For convenience the url has been copied to your clipboard. Press enter when you are ready to continue."
|
|
fi
|
|
dictFile=""
|
|
for i in "${HOME}/Downloads/dict.dat" "${HOME}/Desktop/dict.dat" ; do
|
|
if [[ -r "$i" ]]; then
|
|
dictFile="$i"
|
|
fi
|
|
done
|
|
if [[ "${#dictFile}" -ge 3 ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
|
|
agm_yesno "Bokurano Daibouken 3" "Bokurano Daibouken 3" "Possible English translation file found at $dictFile. Would you like to use it for BK3?" && cp -fv "$dictFile" "${cache}/bk3-dict.dat"
|
|
fi
|
|
download "https://www.nyanchangames.com/softs/nn3_setup.exe"
|
|
# Uses standard wine path based on architecture (win32/win64)
|
|
export winVer="win7"
|
|
install_wine_bottle
|
|
install_with_progress 7z "Extracting game files..." x -o"$WINEPREFIX/drive_c/nyanchangame/bk3" "${cache}/nn3_setup.exe"
|
|
add_launcher "c:\nyanchangame\bk3\play.exe"
|