#!/bin/bash
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Transformers 2"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_WAIT_END=
"Appuyez sur \\"
Suivant\\" UNIQUEMENT quand l'installation
du
jeu sera
terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_END=
"Click on \\"
Next\\" ONLY when the game installation
is finished or you will have to redo the installation.."
fi
POL_SetupWindow_Init
""
""
POL_SetupWindow_install_wine
"1.1.24"
select_prefixe
"$REPERTOIRE/wineprefix/Transformers 2"
POL_SetupWindow_prefixcreate
POL_SetupWindow_menu_list
"Your Memory Graphic"
"$Title"
"32 64 128 256 384 512 768 1024 2048"
" "
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp"
echo
"[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]"
> OGL.reg
echo
"\\"
Multisampling\\
"=\\"
disabled\\
""
>> OGL.reg
echo
"\\"
OffscreenRenderingMode\\
"=\\"
fbo\\
""
>> OGL.reg
echo
"\\"
PixelShaderMode\\
"=\\"
enabled\\
""
>> OGL.reg
echo
"\\"
VideoMemorySize\\
"=\\"
$VMS\\
""
>> OGL.reg
regedit OGL.reg
Set_OS winxp
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
wine $CDROM
/setup
.exe
POL_SetupWindow_message
"wait the end"
"$Title"
POL_SetupWindow_make_shortcut
"Transformers 2"
"$PROGRAMFILES/Activision/Transformers - La Revanche/"
"Transformers2.exe"
""
"Transformers 2"
Set_WineVersion_Assign
"1.1.24"
"Transformers 2"
POL_SetupWindow_Close
exit