#!/bin/bash export WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Steam" export WINEDEBUG="-all" RES=$(DISPLAY=:0 xdpyinfo | grep dimensions | awk '{print $2}') VIRT_DESK="explorer /desktop=Steam,$RES" WINEVERSION="$HOME/.PlayOnLinux/wine/linux-x86/1.7.4-CSMT" STEAM_DIR="$HOME/.PlayOnLinux/wineprefix/Steam/drive_c/Program Files/Steam" GAME_DIR="SteamApps/common/Remember Me/Binaries/Win32" GAME_EXEC="RememberMe.exe" $HOME/profiles/re_me & $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/Steam.exe -silent & sleep 8 $WINEVERSION/bin/wine REG ADD HKEY_CURRENT_USER\\Software\\Wine\\DirectInput /v MouseWarpOverride /t Reg_Sz /d force if [ "${SteamTenfoot}" -eq "1" ]; then $WINEVERSION/bin/wine "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC" else $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC" fi sleep 10 while ps -C "$GAME_EXEC" > /dev/null; do sleep 5; done; $WINEVERSION/bin/wine "$STEAM_DIR"/Steam.exe -shutdown $WINEVERSION/bin/wine REG DELETE HKEY_CURRENT_USER\\Software\\Wine\\DirectInput /v MouseWarpOverride /t Reg_Sz /d force while ps -C Steam.exe > /dev/null; do sleep 2; done; $WINEVERSION/bin/wineserver -k killall xboxdrv #notes #use Windows XP #and #disable cloud saving (game hangs on exit while looking for Program Files(x86)) #Bindings=(Name="F5",Command="SetRes 1920x1080w") #Bindings=(Name="F6",Command="SetRes 1920x1080f")