initial import
This commit is contained in:
commit
d22055dd9a
3 changed files with 64 additions and 0 deletions
10
start.sh
Normal file
10
start.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
SAVE_FILE="/root/.openttd/save/autosave/latest.sav"
|
||||
|
||||
if [ -f "$SAVE_FILE" ]; then
|
||||
echo "Loading savegame: $SAVE_FILE"
|
||||
exec /openttd/source/build/openttd -D -g autosave/latest.sav
|
||||
else
|
||||
echo "No savegame found. Starting new game."
|
||||
exec /openttd/source/build/openttd -D
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue