Forums
Red Alert 2
Auteur |
Réponses |
DemonHypnos |
Jeudi 9 Avril 2009 à 17:08
|
DemonHypnos
|
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 |
Mardi 5 Octobre 2010 à 14:55
|
gardar
|
redalert.sh: line 4: syntax error near unexpected token `fi'
redalert.sh: line 4: `fi'
|
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com