2021-04-06 06:57:19 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-03-13 06:18:57 +02:00
|
|
|
dwarfdir="/games/dwarf-fortress"
|
2021-04-08 11:26:46 +03:00
|
|
|
timestamp=$(date +"%Y%m%d-%H.%M.%S")
|
2021-04-06 06:57:19 +03:00
|
|
|
|
|
|
|
# Remove libstdc++.so.6 since it's too old for bitbreaker
|
|
|
|
if [[ -f "$dwarfdir/libs/libstdc++.so.6" ]]; then
|
|
|
|
rm "$dwarfdir/libs/libstdc++.so.6"
|
|
|
|
echo "Removed bundled libstdc++.so.6"
|
|
|
|
fi
|
|
|
|
|
2021-04-08 11:26:46 +03:00
|
|
|
# Clear the gamelog for stream
|
2022-03-13 06:18:57 +02:00
|
|
|
if [[ -f "$dwarfdir/gamelog.txt" ]]; then
|
|
|
|
mv "$dwarfdir/gamelog.txt" "$dwarfdir/logs/gamelog-$timestamp.txt"
|
|
|
|
fi
|
2021-04-08 11:26:46 +03:00
|
|
|
|
2021-04-06 06:57:19 +03:00
|
|
|
cd $dwarfdir
|
|
|
|
|
|
|
|
if [[ -f "dfhack" ]]; then
|
|
|
|
echo "DFHack installed, using dfhack"
|
2021-04-08 11:26:46 +03:00
|
|
|
alacritty -e ./dfhack -t "DFHack"
|
2021-04-06 06:57:19 +03:00
|
|
|
else
|
2021-04-08 11:26:46 +03:00
|
|
|
./df
|
2021-04-06 06:57:19 +03:00
|
|
|
fi
|