#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"The Elder Scrolls V : Skyrim"
PREFIX=
"Skyrim"
EDITOR=
"Bethesda Softworks"
AUTHOR=
"Valmar"
[
"$POL_OS"
=
"Linux"
] && WORKING_WINE_VERSION=
"1.5.27"
[
"$POL_OS"
=
"Mac"
] && WORKING_WINE_VERSION=
"1.5.27"
GAME_VMS=
"512"
STEAM_ID=
"72850"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_SetupWindow_InstallMethod
"DVD,STEAM"
which
pulseaudio && Set_OS
"win7"
POL_Call
POL_Install_steam
POL_Call
POL_Install_vcrun2008
POL_Call
POL_Install_dxfullsetup
POL_SetupWindow_VMS
$GAME_VMS
POL_Wine_SetVideoDriver
POL_Wine_X11Drv
"GrabFullscreen"
"Y"
POL_Wine_Direct3D
"UseGLSL"
"disabled"
[
"$POL_OS"
=
"Linux"
] && Set_SoundDriver
"alsa"
[
"$POL_OS"
=
"Linux"
] && Set_SoundEmulDriver
"Y"
POL_Call
POL_Install_steam_flags
"$STEAM_ID"
POL_Shortcut
"steam.exe"
"Steam ($TITLE)"
""
""
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"steam.exe"
POL_SetupWindow_message
"$(eval_gettext 'Steam is about to perform an update. After Steam finishes updating and shows you to the login interface, login (or register if you do not have an Steam account) and then when you get to the main Steam interface, close COMPLETELY the Steam interface so that the installation script can continue.')"
"$TITLE"
POL_Wine_WaitExit
"$TITLE installation"
--allow-
kill
if
[
"$INSTALL_METHOD"
==
"DVD"
];
then
POL_SetupWindow_message
"$(eval_gettext 'Please insert the game media into your disk drive')"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'When $TITLE installation is finished, do NOT click on Play.\\n\\nClose COMPLETELY the Steam interface, \\nso that the installation script can continue')"
"$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"The Elder Scrolls V- Skyrim_disk1_0.sid"
ln
-s
"$CDROM"
e:
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"Steam.exe"
-
install
e:
POL_Wine_WaitExit
"$TITLE"
else
POL_SetupWindow_message
"$(eval_gettext 'When $TITLE download by Steam is finished, do NOT click on Play.\\n\\nClose COMPLETELY the Steam interface, \\nso that the installation script can continue')"
"$TITLE"
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"Steam.exe"
steam:
//install/
$STEAM_ID
POL_Wine_WaitExit
"$TITLE"
fi
POL_SetupWindow_message
"$(eval_gettext 'If the game crashes at startup, open a terminal and type:\\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
POL_SetupWindow_Close
exit
0