#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Tomb Raider: Underworld"
PREFIX=
"TRU"
WORKING_WINE_VERSION=
"1.3.14"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_WAIT_WARNING=
"Tomb Raider: Underworld, la dernière aventure de Lara Croft"
LNG_WAIT_START=
"L'installation va commencer..."
LNG_GAME_VMS=
"La taille de votre mémoire graphique?"
LNG_VMS_ERROR=
"Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 256Mo de mémoire."
LNG_INSTALL_RUN=
"Installation en cours..."
LNG_WAIT_END=
"Appuyez sur \\"
Suivant\\
" UNIQUEMENT quand l'installation du programme sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_WAIT_HF=
"L'exploration peut commencer"
else
LNG_WAIT_WARNING=
"Tomb Raider: Underworld, the latest adventure of Lara Croft"
LNG_WAIT_START=
"Installation is going to begin..."
LNG_GAME_VMS=
"How much memory does your graphic card have?"
LNG_VMS_ERROR=
"This game will work correctly only with a graphic card with more than 256Mo of memory."
LNG_INSTALL_RUN=
"Installation in progress..."
LNG_WAIT_END=
"Click on \\"
Next\\
" ONLY when the software installation is finished\\nor you will have to install again the game."
LNG_WAIT_HF=
"Explorations can begin"
fi
POL_SetupWindow_Init
POL_SetupWindow_message
"$LNG_WAIT_WARNING"
"$TITLE"
POL_SetupWindow_message
"$LNG_WAIT_START"
"$TITLE"
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_install_wine
"$WORKING_WINE_VERSION"
Use_WineVersion
"$WORKING_WINE_VERSION"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
POL_SetupWindow_wait_next_signal
"$LNG_INSTALL_RUN"
"$TITLE"
wine start
/unix
"$CDROM/setup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$LNG_WAIT_END"
"$TITLE"
POL_SetupWindow_menu_list
"$LNG_GAME_VMS"
"$TITLE"
"64-128-256-320-384-512-640-768-896-1024-1536-1792-2048-3072-4096"
"-"
"256"
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp/"
cat
<< EOF > vms.reg
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
"VideoMemorySize"
=
"$VMS"
EOF
regedit vms.reg
if
[
"$VMS"
-lt
"256"
];
then
POL_SetupWindow_message
"$LNG_VMS_ERROR"
"$TITLE"
fi
POL_SetupWindow_auto_shortcut
"$PREFIX"
"tru.exe"
"$TITLE"
Set_WineVersion_Assign
"$WORKING_WINE_VERSION"
"$TITLE"
POL_SetupWindow_message
"$LNG_WAIT_HF"
"$TITLE"
POL_SetupWindow_Close
exit