Advertisement
Guest User

My own adaptation

a guest
Aug 7th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/bin/bash
  2. # K1773R K1773R@darkgamex.ch
  3. width=1920
  4. height=1032
  5.  
  6. cd "/home/cyrus/.wine/drive_c/users/Public/Application Data/Blizzard Entertainment/StarCraft II"
  7. WINEPREFIX="/home/cyrus/.wine" /usr/bin/wine regedit "/host/Program Files (X86)/StarCraft II/disablep2p.reg"
  8. WINEPREFIX="/home/cyrus/.wine" /usr/bin/wine explorer /desktop=StarCraft_2,"$width"x"$height" "/.wine/drive_c/users/Public/Application Data/Battle.net/Agent/Agent.exe" --nohttpauth &
  9. sleep 5
  10. WINEPREFIX="/home/cyrus/.wine" /usr/bin/wine explorer /desktop=StarCraft_2,"$width"x"$height" "/host/Program Files (X86)/StarCraft II/StarCraft II.exe" &
  11. sleep 5
  12. while [ 1 ];
  13. do
  14. if [ ! "$(pidof SC2.exe)" ]
  15. then
  16. if [ ! $(pidof "StarCraft II.exe") ]
  17. then
  18. if [ ! $(pidof "Blizzard Launcher.exe") ]
  19. then
  20. killall Agent.exe 2>/dev/null
  21. exit
  22. fi
  23. fi
  24. fi
  25. sleep 1
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement