#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Dark Age of Camelot : Labyrinth of the Minotaur"
Prefix=
"DAoCLotM"
if
[
"$POL_LANG"
=
"sv"
];
then
LNG_MEM=
"Hur mycke minne har ditt grafikkort?"
LNG_INSTALL=
"Installerar..."
LNG_PIXEL=
"Du lär checka av 'Pixel Shaders On' i wine config. \\nAnnars kommer spelet att krasha."
else
LNG_MEM=
"How much memory do your graphic card have got?"
LNG_INSTALL=
"Installing..."
LNG_PIXEL=
"You need to uncheck the 'Pixel Shaders On' in wine config. \\nOr ells the game will crash"
fi
cd
"$REPERTOIRE/tmp"
rm
*.jpg
wget http:
//upload
.wikimedia.org
/wikipedia/en/9/9e/DAOCanniversarycover
.jpg --output-document=
"$REPERTOIRE/tmp/$Prefix.jpg"
convert
"$REPERTOIRE/tmp/$Prefix.jpg"
-scale 150x356\\!
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_install_wine
"1.1.30"
Use_WineVersion
"1.1.30"
select_prefix
"$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_Call
POL_Install_d3dx9
POL_Call
POL_Install_gecko
POL_SetupWindow_menu
"$LNG_MEM"
"$Title"
"32-64-128-256-384-512-768-896-1024-2048"
"-"
"128"
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp"
cat
<< EOF > OGL.reg
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
"VideoMemorySize"
=
"$VMS"
EOF
regedit OGL.reg
Set_OS winxp
cd
"$HOME/.PlayOnLinux/wineprefix/$Prefix/drive_c/Program Files"
mkdir
"Electronic Arts"
cd
"Electronic Arts"
mkdir
"Dark Age of Camelot"
POL_SetupWindow_wait_next_signal
"$LNG_INSTALL"
"$Title"
wine
"$REPERTOIRE/tmp/DAoCSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut
"$Prefix"
"$PROGRAMFILES/Electronic Arts/Dark Age of Camelot"
"camelot.exe"
""
"$Title"
Set_WineVersion_Assign
"1.1.30"
"$Title"
POL_SetupWindow_message_image
"$LNG_PIXEL"
"$Title"
"$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_Close
exit