updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nwn-diamond / nwn.launcher
blobb0b3c0a89b62130e94daac8b73820f11ede0c82f
1 #!/bin/sh
3 # Create user directory if it doesn't exist
4 if [ ! -d "$HOME/.nwn/" ]; then
5 mkdir $HOME/.nwn/
6 fi
8 cd "/opt/nwn"
10 # Uncomment to make SDL Sound work on Software Mixers
11 #export SDL_AUDIODRIVER=esd
12 export SDL_MOUSE_RELATIVE=0
13 export SDL_VIDEO_X11_DGAMOUSE=0
15 # Hardware Mouse Cursor
16 export XCURSOR_PATH=/opt/nwn
17 export XCURSOR_THEME=nwmouse
19 # Enable AA on NVidia cards (/usr/share/doc/NVIDIA_GLX-1.0/README.txt)
20 # 3 = 1.5 x 1.5 super sampling
21 # 4 = 2x2 super sampling
22 export __GL_FSAA_MODE=4
24 # Add Miles Sound Codec to Library Path
25 export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH
27 # Per-User Settings Support, Hardware Mouse Cursor Support, Linux Movies Support, Client Side Chat Logging Support
28 export LD_PRELOAD=./nwuser.so:./nwuser64.so:./nwmouse.so:./nwmovies.so:./nwlogger.so
30 # Run Neverwinter Nights
31 ./nwmain $*
33 exit $?