#!/bin/bash # Date : (2013-06-01 17-00) # Last revision : (2014-15-11 00-00) # Wine version used : 1.7.30 # Distribution used to test : Xubuntu 14.04 # Authors : TonyFlow, rogue-spectre # Script licence : GPL v.2 # Program licence : Retail # Depend : [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" GOGID="race_driver_grid" PREFIX="GRID_gog" WORKING_WINE_VERSION="1.7.30" TITLE="GOG.com - Race Driver: GRID" SHORTCUT_NAME="Race Driver: GRID" #POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init #POL_SetupWindow_SetID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Codemasters" "http://www.gog.com/gamecard/$GOGID" "TonyFlow" "$PREFIX" POL_Call POL_GoG_setup "$GOGID" "1f4a7a2c36212a3ede5915c700578c74" "035a1fe8d2d57b7146cb26422c6d7878" "b9fb8635c41d2b13e898df2c80283dde" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Default interface leaks winprocs and crashes under Wine POL_Call POL_GoG_install # GoG work! Set_OS winxp # Install DirectX9 POL_Call POL_Install_d3dx9_36 POL_SetupWindow_VMS "256" # enable 1920x1080 screen sed -e 's/maxWidth="1280"/maxWidth="1920"/' -i "$WINEPREFIX/drive_c/GOG Games/Race Driver GRID/system/hardware_settings_restrictions.xml" # Doesn't hurt ;) POL_Wine_reboot GOGPATH="$GOGROOT/Race Driver GRID" POL_Shortcut "GRID.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;SportsGame" POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/Manuals/Manual.pdf" #POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/Manuals/Manual FR.pdf" POL_SetupWindow_Close # Launch the language setup POL_Wine "$WINEPREFIX/drive_c/GOG Games/Race Driver GRID/Language Setup.exe" exit 0