blob: dff2adcf226997a3029a899e486c3ebe96e9581c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env bash
# Debian/Ubuntu patch bug
export SDL_DISABLE_LOCK_KEYS=1
# Force xwayland
[ "$SDL_VIDEODRIVER" == wayland ] && export SDL_VIDEODRIVER=x11
if [ ! -d "$HOME"/.dwarffortress ]; then
mkdir -p "$HOME"/.dwarffortress/data
ln -s /opt/dwarffortress/raw "$HOME"/.dwarffortress/raw
ln -s /opt/dwarffortress/libs "$HOME"/.dwarffortress/libs
cp -rn /opt/dwarffortress/data/init "$HOME"/.dwarffortress/data/init
for i in announcement art dipscript help index initial_movies movies \
shader.fs shader.vs sound speech; do
cp -r /opt/dwarffortress/data/"$i" "$HOME"/.dwarffortress/data/"$i"
done
fi
cd "$HOME"/.dwarffortress || exit
exec ./libs/Dwarf_Fortress "$@"
|