#!/bin/bash # Date : (2009-09-01 12-00) # Last revision : (2009-09-20 17-00) # Wine version used : N/A # Distribution used to test : N/A [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" #fetching PROGRAMFILES environmental variable PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"` PROGRAMFILES=${PROGRAMFILES:3} cd $REPERTOIRE/tmp rm *.jpg wget $SITE/setups/wow_bc/left.jpg wget $SITE/setups/wow/top.jpg POL_SetupWindow_Init "$REPERTOIRE/tmp/top.jpg" "$REPERTOIRE/tmp/left.jpg" POL_SetupWindow_presentation "World of Warcraft" "Blizzard Entertainment" "www.blizzard.com" "CGM-Yukino for dual-booters, based on Asimov's script." "WorldOfWarcraft" select_prefixe "$REPERTOIRE/wineprefix/WorldOfWarcraft" POL_SetupWindow_prefixcreate if [ "$POL_LANG" != "fr" ] then LNG_CONFIRM="Click FORWARD." LNG_CONFIG="Configuring your installation..." LNG_CONFIG_TILTE="Please wait" LNG_INSTALL_FINISHED="Installation complete !" fi POL_SetupWindow_message "$LNG_CONFIRM" POL_SetupWindow_wait_next_signal "$LNG_CONFIG" "$LNG_CONFIG_TILTE" #CONFIGURATION : Config.wtf cd $REPERTOIRE/tmp/ echo "SET gxApi \"opengl\"" > Config.wtf echo "SET ffxDeath \"0\"" >> Config.wtf echo "SET SoundOutputSystem \"1\"" >> Config.wtf echo "SET SoundBufferSize \"150\"" >> Config.wtf echo "SET MasterSoundEffects \"0\"" >> Config.wtf #cp -f Config.wtf $WINEPREFIX/drive_c/Program\ Files/World\ of\ Warcraft/WTF/Config.wtf cp -f Config.wtf "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf" #POL PlugIn to reset Confing.wtf cd "$REPERTOIRE/tmp" wget $SITE/plugins/divers/WorldOfWarcraft_Updater_0.1.pol "$PLAYONLINUX/playonlinux-pkg" -i WorldOfWarcraft_Updater_0.1.pol #MOD : APPLY TO FOREHEAD #cd $WINEPREFIX/drive_c/Program\ Files/World\ of\ Warcraft/Interface/ cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface" wget $SITE/divers/ApplyToForehead.zip unzip ApplyToForehead.zip rm ApplyToForehead.zip #cd $WINEPREFIX/drive_c/Program\ Files/World\ of\ Warcraft/ cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft" Set_SoundDriver alsa fonts_to_prefixe chmod 777 $TEMP -R rm $TEMP -R cd $WINEPREFIX/dosdevices rm ./d: POL_SetupWindow_make_shortcut "WorldOfWarcraft" "$PROGRAMFILES/World of Warcraft" "Launcher.exe" POL_SetupWindow_reboot POL_SetupWindow_detect_exit POL_SetupWindow_message "$LNG_INSTALL_FINISHED" POL_SetupWindow_Close exit