El Foro

Red Alert 2

Autor Respuestas
DemonHypnos Thursday 9 April 2009 at 17:08
DemonHypnosAnonymous

Hi all! I have made a script for Red Alert 2.

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]then
exit 0
fi
source "$PLAYONLINUX/lib/sources"



POL_SetupWindow_Init
POL_SetupWindow_presentation "Command & Conquer: Red Alert 2" "Westwood Games" "http://www.westwood.com/" "DemonHypnos" "Red Alert 2"


select_prefix "$REPERTOIRE/wineprefix/RedAlert2/"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe"



POL_SetupWindow_wait_next_signal "Installing Red Alert 2...please wait patiently..." "Red Alert 2"

mkdir $HOME/.PlayOnLinux/tmp/RA2
TEMP="$HOME/.PlayOnLinux/tmp/RA2"
chmod 777 $TEMP -R
cd $TEMP
echo "RA2" > .windows-label
cd $WINEPREFIX/dosdevices
ln -sf $TEMP d:
cp $CDROM/* -r $TEMP
chmod 777 $TEMP -R


Set_WineVersion_Session "0.9.47"


cd $TEMP
wine Setup.exe

POL_SetupWindow_detect_exit

POL_SetupWindow_reboot


#DLL Overrides
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\AppDefaults\\\\game.exe\\\\Direct3D]" > $REPERTOIRE/tmp/dlloverrides.reg
echo "\\"DirectDrawRenderer\\"=\\"opengl\\"" >> $REPERTOIRE/tmp/dlloverrides.reg
echo "\\"RenderTargetLockMode\\"=\\"readtex\\"" >> $REPERTOIRE/tmp/dlloverrides.reg
regedit $REPERTOIRE/tmp/dlloverrides.reg

POL_SetupWindow_make_shortcut "RedAlert2" "Westwood/RA2/" "Ra2.exe" "" "Red Alert 2"

rm -r $TEMP
ln -sf $CDROM d:

POL_SetupWindow_Close
exit

"Sleep is eminent!"
gardar Tuesday 5 October 2010 at 14:55
gardarAnonymous

redalert.sh: line 4: syntax error near unexpected token `fi'
redalert.sh: line 4: `fi'