#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Star Wars Empire at War"
Prefix=
"SWEAW"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_MEM=
"La taille de votre mémoire graphique?"
LNG_WAIT_END=
"Appuyez sur \\"
Suivant\\
" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_FILEPATCH=
"Selectionner le patch à installer"
LNG_INST=
"Patch pour $Title installé avec succès"
else
LNG_MEM=
"How much memory do your graphic card have got?."
LNG_WAIT_END=
"Click on \\"
Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_FILEPATCH=
"Select patch file"
LNGINST=
"Patch for $Title has been installed successfully"
fi
patch_EmpireAtWar()
{
POL_SetupWindow_browse
"$LNG_FILEPATCH"
"$Title"
""
wine
"$APP_ANSWER"
POL_SetupWindow_message
"$LNG_INST"
"$Title"
}
cd
$REPERTOIRE
/tmp
rm
*.jpg
wget http:
//images3
.wikia.nocookie.net
/starwars/images/b/b3/Eaw_keyart
.jpg --output-document=
"$REPERTOIRE/tmp/Eaw_keyart.jpg"
convert
"$REPERTOIRE/tmp/Eaw_keyart.jpg"
-scale 150x356\\!
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_menu
"$LNG_INSTALL"
"Actions"
"Install $Title~Patch game"
"~"
if
[
"$APP_ANSWER"
==
"Patch game"
];
then
select_prefix
"$REPERTOIRE/wineprefix/$Prefix"
patch_EmpireAtWar
POL_SetupWindow_Close
exit
fi
select_prefixe
"$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
cd
"$REPERTOIRE/ressources"
export
POL_TITLE=
"$Prefix"
tricks d3dx9
POL_SetupWindow_textbox
"$LNG_MEM"
"$Title"
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp"
echo
"[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]"
> OGL.reg
echo
"\\"
VideoMemorySize\\
"=\\"
$VMS\\
""
>> OGL.reg
regedit OGL.reg
Set_OS winxp
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
convert
"$CDROM/Install/MediaCenter-Small.png"
-geometry 32X32
"$REPERTOIRE/icones/32/$Title"
wine $CDROM
/setup
.exe
POL_SetupWindow_message
"$LNG_WAIT_END"
"$Title"
POL_SetupWindow_make_shortcut
"$Prefix"
"Program Files/LucasArts/Star Wars Empire at War/GameData"
"sweaw.exe"
""
"$Title"
Set_WineVersion_Assign
"1.1.30"
"$Title"
POL_SetupWindow_message_image
"Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff."
"Note about copy protection"
"$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_Close
exit