#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Grandia 2"
PREFIX=
"Grandia_II"
EDITOR=
"Game Arts"
AUTHOR=
"Valmar"
WORKINGWINEVERSION=
"1.5.28"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
"$WORKINGWINEVERSION"
which
pulseaudio && Set_OS
"win98"
POL_SetupWindow_message
"Please insert $TITLE media into your disk drive."
POL_SetupWindow_check_cdrom
"Setup.exe"
wine start
/unix
"$CDROM/Setup.exe"
POL_SetupWindow_message
"When the installer asks you for 2nd installation CD, click 'Next'."
"$TITLE"
wine
eject
POL_Wine_WaitExit
"$TITLE installation"
--allow-
kill
POL_SetupWindow_check_cdrom
"drvmgt.dll"
cp
"$CDROM/EXE/Grandia2.exe"
"$WINEPREFIX/drive_c/$PROGRAMFILES/Grandia2/Grandia2.exe"
POL_Wine_reboot
POL_Shortcut
"Grandia2.exe"
"$TITLE"
""
""
POL_Shortcut
"GmConfig.exe"
"$TITLE Configuration"
""
""
POL_SetupWindow_message
"Whenever the screen goes black and does not change after a while, press F9. This is due to problems with Wine's current amstream.dll implementation, meaning that game cannot play it's cinematics.\\n\\nInstalling a native windows amstream.dll does not solve the problem, unfortunately.\\n\\nHopefully, this problem is solved in the future."
POL_SetupWindow_Close
exit