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