#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Sono Hanabira ni Kuchizuke wo 09 - Amakute Otona no Torokeru Chuu"
PREFIX=
"SonoHana_09"
WINEVERSION=
"1.7.26"
EDITOR=
"Fuguriya"
AUTHOR=
"Marking"
SHORTCUT_NAME_JP=
"その花びらにくちづけを 09 あまくておとなのとろけるちゅう"
SHORTCUT_NAME_EN=
"A Kiss for the Petals 09 - Sweet Grown-up Kisses"
INSTALL_JP=
'インストール'
END_JP=
'終了'
YES_JP=
'はい'
POL_SetupWindow_Init
POL_RequiredVersion
"4.1.6"
|| POL_Debug_Fatal
"$APPLICATION_TITLE 4.1.6 is required to install $TITLE"
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WINEVERSION"
SONOHANA=
"$WINEPREFIX/drive_c/$PROGRAMFILES/ふぐり屋/その花びらにくちづけを あまくておとなのとろけるちゅう/"
POL_SetupWindow_InstallMethod
"LOCAL,DVD"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
]
then
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please locate installation program (Setup.exe)')"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'When the install program starts, click on ${INSTALL_JP}. When a new window opens, click on ${INSTALL_JP}. When installation finishes, click on ${END_JP} and then on ${YES_JP} (Y). Click Next to begin installation.')"
"Installation instructions"
LANG=
"ja_JP.UTF-8"
POL_Wine
"$APP_ANSWER"
elif
[
"$INSTALL_METHOD"
=
"DVD"
]
then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"BGM"
POL_SetupWindow_message
"$(eval_gettext 'When the install program starts, click on ${INSTALL_JP}. When a new window opens, click on ${INSTALL_JP}. When installation finishes, click on ${END_JP} and then on ${YES_JP} (Y). Click Next to begin installation.')"
"Installation instructions"
LANG=
"ja_JP.UTF-8"
POL_Wine
"$CDROM/Setup.exe"
fi
POL_SetupWindow_menu
"Which language would you like to read this in?"
"Select Language"
"日本語 (Japanese)|English"
"|"
if
[
"$APP_ANSWER"
=
"日本語 (Japanese)"
]
then
FJFIX_PATCH=
"fjfix.zip"
cd
"$SONOHANA"
POL_System_unzip $FJFIX_PATCH
POL_Wine_WaitBefore
"the fjfix patch"
POL_Wine
"fjfix.exe"
-f MGD
POL_Shortcut
"HANA9.EXE"
"$SHORTCUT_NAME_JP"
"$SHORTCUT_NAME_JP.png"
POL_Shortcut_InsertBeforeWine
"$SHORTCUT_NAME_JP"
"LANG=ja_JP.UTF-8"
elif
[
"$APP_ANSWER"
=
"English"
]
then
POL_SetupWindow_browse
"$(eval_gettext 'Please locate English translation patch file')"
"$TITLE"
cp
"$APP_ANSWER"
"$SONOHANA/SH_EN.EXE"
cd
"$SONOHANA"
POL_Wine_WaitBefore
"the English patch"
POL_Wine
"SH_EN.EXE"
FJFIX_PATCH=
"fjfix.zip"
cd
"$SONOHANA"
POL_System_unzip $FJFIX_PATCH
POL_Wine_WaitBefore
"the fjfix patch"
POL_Wine
"fjfix.exe"
-f MGD
POL_Shortcut
"HANA9.EXE"
"$SHORTCUT_NAME_EN"
"$SHORTCUT_NAME_EN.png"
POL_Shortcut_InsertBeforeWine
"$SHORTCUT_NAME_EN"
"LANG=ja_JP.UTF-8"
fi
POL_SetupWindow_Close
exit