src_prepare-overlay/games-rpg/fallout1/files/fallout1_wine

27 lines
609 B
Plaintext
Raw Normal View History

2020-04-18 20:01:31 +02:00
#!/usr/bin/env bash
set -xeuo pipefail
WINEPREFIX=~/.wine_fallout1
WINEARCH=win32
if [ ! -d ~/.local/share/Fallout1 ]; then
mkdir -p ~/.local/share/Fallout1
pushd ~/.local/share/Fallout1
for i in $(ls /usr/share/games/fallout1 | grep -vE '^fallout\.cfg$|^DATA$'); do
ln -s /usr/share/games/fallout1/$i $i
done
cp /usr/share/games/fallout1/fallout.cfg .
mkdir DATA
pushd DATA
for i in $(ls /usr/share/games/fallout1/DATA | grep -v ^SAVEGAME$); do
ln -s /usr/share/games/fallout1/DATA/$i $i
done
mkdir SAVEGAME
popd
popd
fi
pushd ~/.local/share/Fallout1
wine falloutw.exe
popd