#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
GOGID=
"empire_earth_gold_edition"
PREFIX=
"EmpireEarth_gog"
WORKING_WINE_VERSION=
"1.7.0"
TITLE=
"GOG.com - Empire Earth: Gold Edition"
SHORTCUT_NAME1=
"Empire Earth"
SHORTCUT_NAME2=
"Empire Earth: The Art of Conquest"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"Stainless Steel Studios / Rebellion"
"http://www.gog.com/gamecard/$GOGID"
"Pierre Etchemaite"
"$PREFIX"
POL_Call
POL_GoG_setup
"$GOGID"
"57ef54728c735825e3ae276119b288d4"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_GoG_install
POL_Call
POL_install_d3dx9
POL_Call
POL_install_directmusic
POL_Call
POL_install_vcrun6
Set_OS win2k
POL_SetupWindow_VMS
"4"
POL_Wine_X11Drv
"DXGrab"
"Y"
POL_Wine_X11Drv
"GrabFullScreen"
"Y"
POL_Wine_reboot
POL_Shortcut_XInputLinearProfile() {
local
SHORTCUT=
"$1"
[
"$POL_OS"
=
"Mac"
] &&
return
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
'DEVICEIDS="$(xinput list|sed -ne '
"
'"'
s/.*
id
=\([0-9]\+\).*slave.*pointer.*/\1
/p
'"'
"')"
'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
'declare -A DEVICEPROFILES'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
'for deviceid in $DEVICEIDS; do'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
' profile="$(xinput list-props $deviceid|sed -ne '
"
'"'
s/.*Device Accel Profile.*\([0-9]\+\)$/\1
/p
'"'
"')"
'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
' if [ -n "$profile" ]; then'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
' DEVICEPROFILES[$deviceid]=$profile'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
' xinput set-prop $deviceid "Device Accel Profile" 6 # linear'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
' fi'
POL_Shortcut_InsertBeforeWine
"$SHORTCUT"
'done'
echo
'for deviceid in $DEVICEIDS; do'
>>
"$POL_USER_ROOT/shortcuts/$SHORTCUT"
echo
' [ -n "${DEVICEPROFILES[$deviceid]}" ] && xinput set-prop $deviceid "Device Accel Profile" ${DEVICEPROFILES[$deviceid]}'
>>
"$POL_USER_ROOT/shortcuts/$SHORTCUT"
echo
'done'
>>
"$POL_USER_ROOT/shortcuts/$SHORTCUT"
}
POL_Shortcut
"Empire Earth.exe"
"$SHORTCUT_NAME1"
"$SHORTCUT_NAME1.png"
""
"Game;StrategyGame;"
POL_Shortcut_XInputLinearProfile
"$SHORTCUT_NAME1"
POL_Shortcut_QuietDebug
"$SHORTCUT_NAME1"
POL_Shortcut_Document
"$SHORTCUT_NAME1"
"$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth/Manual.pdf"
POL_Shortcut
"EE-AOC.exe"
"$SHORTCUT_NAME2"
"$SHORTCUT_NAME2.png"
""
"Game;StrategyGame;"
POL_Shortcut_XInputLinearProfile
"$SHORTCUT_NAME2"
POL_Shortcut_QuietDebug
"$SHORTCUT_NAME2"
POL_Shortcut_Document
"$SHORTCUT_NAME2"
"$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth - The Art of Conquest/manual_aoc.pdf"
POL_SetupWindow_Close
exit
0