#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Space Engineers"
PREFIX=
"SpaceEngineers"
EDITOR=
"Keen Software House"
AUTHOR=
"LinuxScripter"
WORKING_WINE_VERSION=
"1.7.51-staging"
POL_SetupWindow_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
"STEAM,DVD"
POL_Call
POL_Install_corefonts
POL_Function_FontsSmoothRGB
POL_Call
POL_Install_dotnet40
POL_Call
POL_Install_vb6run
POL_Wine_OverrideDLL
""
"dwrite"
POL_SetupWindow_message
"$(eval_gettext 'Now the script will install Steam. After the Steam installator finishes downloading updates log-in and close Steam.')"
if
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
POL_Call
POL_Install_steam
POL_SetupWindow_message
"$(eval_gettext 'Now the script will install the game. After the installation is complete do not play it. Close steam so the script can set the necessary dlls to "
Native
".')"
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"steam.exe"
steam:
//install/244850
POL_Wine_WaitExit
"$TITLE"
else
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run')"
"$TITLE"
SETUP_EXE=
"$APP_ANSWER"
POL_Wine
start
/unix
"$SETUP_EXE"
POL_Wine_WaitExit
"$TITLE"
fi
POL_SetupWindow_VMS
$GAME_VMS
POL_Wine_SetVideoDriver
POL_Wine_OverrideDLL
"native"
"oleaut32"
POL_Wine_OverrideDLL
"native"
"mscoree"
POL_Wine_OverrideDLL
"native"
"x3daudio1_7"
if
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
else
POL_Shortcut
"SpaceEngineers.exe"
"$TITLE"
""
""
fi
POL_SetupWindow_Close
exit
0