#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"World Of Tanks HD"
PREFIX=
"WorldOfTanks HD"
WORKING_WINE_VERSION=
"1.7.44"
PUBLISHER=
"BigWorld Technology"
AUTHOR=
"beli3ver"
GAME_VMS=
"1024"
POL_GetSetupImages
POL_SetupWindow_Init
POL_SetupWindow_SetID
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$PUBLISHER"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_SetupWindow_menu
"$(eval_gettext 'Which region version of World of Tanks would you like to install? Note: Korea not supported on this installation.')"
"$TITLE"
"North America~Europe~Russia~Asia"
"~"
[
"$APP_ANSWER"
=
"North America"
] && REGION=
"na"
[
"$APP_ANSWER"
=
"Europe"
] && REGION=
"eu"
[
"$APP_ANSWER"
=
"Russia"
] && REGION=
"ru"
[
"$APP_ANSWER"
=
"Asia"
] && REGION=
"asia"
POL_System_TmpCreate
"$PREFIX"
cd
"$POL_System_TmpDir"
POL_System_SetArch
"amd64"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_Install_corefonts
POL_Call
POL_Install_dxfullsetup
POL_Call
POL_Install_tahoma
POL_Call
POL_Install_tahoma2
POL_Call
POL_Install_vcrun2013
POL_Call
POL_Install_wine64b
POL_Call
POL_Install_wininet
POL_SetupWindow_VMS
"$GAME_VMS"
Set_OS
"win7"
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
"$POL_System_TmpDir/latest_web_install_$REGION"
wineserver -k
POL_Shortcut
"WOTLauncher.exe"
"$TITLE"
POL_Shortcut_InsertBeforeWine
"$TITLE"
'sed -i.bak -e "s@<launcher_transport>3</launcher_transport>@<launcher_transport>2</launcher_transport>@" "$WINEPREFIX/drive_c/Games/World_of_Tanks/WoTLauncher.cfg"'
POL_System_TmpDelete
POL_SetupWindow_Close
exit
0