Advertisement
Thaodan

wow4.x

Dec 12th, 2014
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # cd "/home/bidar/.local/share/wineprefixes/wow/drive_c/Programme/World of Warcraft/4.3.3/"
  4. # rm -r "Cache"
  5. # case $1 in
  6. #   -l) exe="World\\ of\\ Warcraft\\ Launcher.exe"  ;;
  7. #   *) exe=Wow.exe ;;
  8. # esac
  9. # usenew wow_dev Battle.net/Agent/Agent.1267/Agent.exe --nohttpauth &
  10. # sleep 2 && usenew -d wow_dev "$exe" #-opengl
  11. #
  12. #
  13. # pkill Agent.exe
  14.  
  15.  
  16.  
  17. APPNAME="World of Warcraft"
  18. APPPATH='/home/bidar/.local/share/wineprefixes/wown/drive_c/Program Files/World of Warcraft'
  19. #user_data=$HOME/.games/Skyrim
  20. commands_s=( g l h e )
  21. commands_l=( game launcher help end )
  22. exe=( game launcher display_help kill_game )
  23. _game=Wow.exe
  24. _launcher="World of Warcraft Launcher.exe"
  25. _agent=Agent.exe
  26. PREFIX=/home/bidar/.local/share/wineprefixes/wown
  27. default_exe=$exe
  28. #WINEPATH=$HOME/.wine-ver/wine_h.3.27
  29. _wine_args="explorer /desktop=Wow,1600x900"
  30. HELP_MSG="options: -g --game start $APPNAME
  31.      -l  --launcher start $APPNAME launcher
  32.      -h  --help print this help
  33.      -e  --end $APPNAME"
  34.  
  35. # enable __GL_THREADED_OPTIMIZATION
  36. export __GL_THREADED_OPTIMIZATION=1
  37. export LD_PRELOAD="libpthread.so.0 libGL.so.1"
  38. WDEBUG=fixme+all
  39. WINE=wine
  40. LIBUSEAPP_LVL=2
  41.  
  42. game() {
  43.     rm -rf "Cache"
  44.     wine_args="$_wine_args" exec_exe  $_game
  45.     pkill $_agent
  46. }
  47.  
  48. launcher() {
  49.     rm -rf "Cache"
  50.     wine_args="$_wine_args" exec_exe "$_launcher"
  51.     pkill $_agent
  52. }
  53.  
  54.  
  55. kill_game()
  56. {
  57.     pkill $_game
  58. }
  59. . /usr/lib/libuse/libuse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement