#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Rally Championship 2000"
PREFIX=
"RallyChampionship2000"
WORKING_WINE_VERSION=
"1.1.2"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_INSERT_MEDIA=
"Veuillez insérer le disque $TITLE dans votre lecteur\nsi ce n'est pas déja fait."
LNG_WAIT_END=
"Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_SUCCES=
"$TITLE a été installé avec succès."
else
LNG_INSERT_MEDIA=
"Please insert $TITLE media into your disk drive\nif not already done."
LNG_WAIT_END=
"Click on \"Next\" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_SUCCES=
"$TITLE has been installed successfully."
fi
cd
$REPERTOIRE
/tmp
rm
*.jpg
POL_SetupWindow_Init
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_install_wine
"$WORKING_WINE_VERSION"
Use_WineVersion
"$WORKING_WINE_VERSION"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_message
"$LNG_INSERT_MEDIA"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"ral.exe"
wine start
/unix
"$CDROM/ral.exe"
POL_SetupWindow_message
"$LNG_WAIT_END"
"$TITLE"
[
"$PLAYONMAC"
==
""
] && Set_Managed
"On"
[
"$PLAYONMAC"
==
""
] || Set_Managed
"Off"
Set_DXGrab
"On"
if
[ -e
"$WINEPREFIX/drive_c/windows/temp/"
];
then
rm
-rf
"$WINEPREFIX/drive_c/windows/temp/*"
chmod
-R 777
"$REPERTOIRE/tmp/"
rm
-rf
"$REPERTOIRE/tmp/*"
fi
POL_SetupWindow_auto_shortcut
"$PREFIX"
"ral.exe"
"$TITLE"
""
""
Set_WineVersion_Assign
"$WORKING_WINE_VERSION"
"$TITLE"
POL_SetupWindow_message
"$LNG_SUCCES"
"$TITLE"
POL_SetupWindow_Close
exit