#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Prefix=
"SettlersII10"
if
[
"$POL_LANG"
==
"pl"
];
then
Title=
"The Settlers II - Dziesięciolecie"
LNG_WAIT_END=
"Kliknij \\"
Dalej\\
" JEDYNIE gdy instalacja gry dobiegnie końca..."
GraphicTitle=
"Uwagi dotyczące ustawień graficznych"
Graphic=
"Niestety są problemy z odbiciami/refleksami w grafice.\\nPrzed przystąpieniem do rozgrywki należy wyłączyć\\n(przesunąć suwak maksymalnie w lewo) opcję \\"
Jakość Odbić\\
".\\n\\nReszta ustawień może być dowolnie ustawiona\\nzależnie od osiągów komputera.\\nJednakże zalecane jest by ustawienia\\nzmieniać w menu głównym przed załadowaniem misji."
Path=
"Program Files/Ubisoft/Funatics/The Settlers II - Dziesięciolecie/bin"
Install=
"Instalowanie..."
GraphMem=
"Pamięć Twojej karty graficznej:"
else
Title=
"The Settlers II - 10th Anniversary"
LNG_WAIT_END=
"Click on \\"
Next\\" ONLY when the game installation
is finished or you will have to redo the installation.."
GraphicTitle=
"Comments on the graphics settings"
Graphic=
"Unfortunately, there are problems with\\nreflections in the graphic.\\nPrior to the game, turn off (move the slider to the left)\\nthe \\"
quality of reflection.\\
"\\n\\nThe rest of the settings can be freely set depending\\non the performance of your computer.\\nHowever, it is recommended to change the settings\\nin the main menu before loading the mission."
Path=
"Program Files/Ubisoft/Funatics/The Settlers II - 10th Anniversary/bin"
Install=
"Installing..."
GraphMem=
"Your Memory Graphic:"
fi
cd
$REPERTOIRE
/tmp
rm
*.jpg
wget http:
//lh4
.ggpht.com
/_TSVrc4pjSss/S2hCzZ1uR0I/AAAAAAAAA_0/j8ao8ErCD9w/SettlersII
.jpg --output-document=
"$REPERTOIRE/tmp/SettlersII.jpg"
convert
"$REPERTOIRE/tmp/SettlersII.jpg"
-scale 150x356\\!
"$REPERTOIRE/tmp/left.jpg"
convert
"$REPERTOIRE/icones/SettlersII10.png"
-scale 60x60\\!
"$REPERTOIRE/tmp/top.png"
POL_SetupWindow_Init
"$REPERTOIRE/tmp/top.png"
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_install_wine
"1.1.37"
Use_WineVersion
"1.1.37"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
select_prefix
"$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
POL_Call
POL_Install_d3dx9_aug2009
POL_SetupWindow_menu_list
"$GraphMem"
"$Title"
"32 64 128 256 384 512 768 896 1024 2048"
" "
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_wait_next_signal
"$Install"
"$Title"
wine
"$CDROM/setup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$LNG_WAIT_END"
"$Title"
convert
"$REPERTOIRE/icones/SettlersII10.png"
-scale 32x32\\!
"$REPERTOIRE/icones/32/$Title"
POL_SetupWindow_make_shortcut
"$Prefix"
"$Path"
"S2DNG.exe"
"SettlersII10.png"
"$Title"
POL_SetupWindow_message_image
"$Graphic"
"$GraphicTitle"
"$PLAYONLINUX/themes/tango/warning.png"
cd
"$WINEPREFIX/drive_c/windows/temp"
echo
"[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]"
> patch.reg
echo
"\\"
dbghelp\\
"=\\"
native\\
""
>> patch.reg
regedit patch.reg
Set_WineVersion_Assign
"1.1.37"
"$Title"
POL_SetupWindow_Close
exit