Ledger Nano X - The secure hardware wallet
SHARE
TWEET

SWTOR launch script for upstream (1.7.5) wine.

a guest Oct 29th, 2013 9,155 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2.  
  3. unset OPTIMUS_PREFIX
  4. # In case of an optimus-enabled laptop, the use of primusrun is recommended over optirun.
  5. # Don't uncomment this line in any other case.
  6. # OPTIMUS_PREFIX="primusrun"
  7.  
  8. # If you store the script anywhere else than the game directory, change this to the path of your launcher.exe
  9. LAUNCHER_COMMAND="wine launcher.exe"
  10.  
  11. # Set up a new wineprefix in the game directory, and reduce debugging to improve performance.
  12. # If you don't like it there, or running the script from somewhere else, change it.
  13. # Please note that WINEARCH=win32 is REQUIRED.
  14. export WINEARCH=win32
  15. export WINEDEBUG=-all
  16. export WINEPREFIX="$( pwd )/wineprefix"
  17.  
  18. # Check if we have swtor_fix.exe, and download it if we don't.
  19. # This can be placed anywhere on the system, and must be run parallel to the game.
  20.  
  21. if [ ! -f swtor_fix.exe ]; then
  22.     wget -O swtor_fix.exe https://github.com/aljen/swtor_fix/raw/master/swtor_fix.exe
  23. fi
  24. # Start it parallely.
  25. wine swtor_fix.exe &
  26. # Give it a sec to fire up.
  27. sleep 1
  28. # Install and set up components in wineprefix.
  29. # Since that command does nothing if already ran, we need no checks there.
  30. winetricks msvcp90=native d3dx9_36 vcrun2008 msls31 winhttp
  31.  
  32. # Here we come!
  33. $OPTIMUS_PREFIX $LAUNCHER_COMMAND
  34.  
  35. # Since wait for swtor_fix.exe to finish.
  36. wait $!
  37.  
  38. # Clean up after ourselves.
  39. unset WINEARCH
  40. unset WINEPREFIX
  41. unset WINEDEBUG
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top