#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
FULLNAME=
"World in Conflict"
CODENAME=
"WorldInConflict"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_WAIT_END=
"Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera\nterminée sous peine de devoir recommencer l'installation."
LNG_WAIT=
"Patientez durant l'installation"
LNG_WAIT_CP=
"Patientez pendant la préparation de l'installation..."
LNG_DLL=
"PlayOnLinux est en train de télécharger les .dll nécessairent au bon fonctionnement du jeu"
LNG_COPY=
"Copie de certains fichiers en cours, cela peut être long"
else
LNG_DLL=
"Downloading .dll"
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_WAIT=
"Wait during the installation"
LNG_WAIT_CP=
"Wait while the installation is prepared..."
LNG_COPY=
"Copying Data, it can be long"
fi
wget http:
//upload
.wikimedia.org
/wikipedia/en/thumb/4/48/Wic-win-cover
.jpg
/256px-Wic-win-cover
.jpg --output-document=
"$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert
"$REPERTOIRE/tmp/leftnotscaled.jpeg"
-scale 150x356\!
"$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_install_wine
"1.1.43"
Use_WineVersion
"1.1.43"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
select_prefix
"$REPERTOIRE/wineprefix/$CODENAME"
POL_SetupWindow_prefixcreate
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
Set_OS winxp
wine
"$CDROM/setup.exe"
POL_SetupWindow_message
"$LNG_WAIT_END"
"$FULLNAME"
cd
"$WINEPREFIX/drive_c/windows/system32"
if
[ ! -e dxdiagn.dll ];
then
fi
cd
"$WINEPREFIX/drive_c/windows/temp"
cat
<< EOF > OGL.reg
[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]
"d3d10"
=
""
"dxdiagn"
=
"native,builtin"
EOF
regedit OGL.reg
cd
"$REPERTOIRE/tmp"
wget http:
//sd-1
.archive-host.com
/membres/images/51568577817080088/WiC
.jpeg
mv
"$REPERTOIRE/tmp/WiC.jpeg"
"$REPERTOIRE/icones/32/$FULLNAME"
POL_SetupWindow_make_shortcut
"$CODENAME"
"$PROGRAMFILES/Sierra Entertainment/World in Conflict/"
"wic.exe"
""
"$FULLNAME"
Set_WineVersion_Assign
"1.1.43"
"$FULLNAME"
POL_SetupWindow_Close
exit