blob: a15a1b3f660f296e59c42fc34385dc35b42ecb1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
# Use XDG_DATA_HOME or fallback to ~/.local/share if it isn't set.
data_folder="${XDG_DATA_HOME:-$HOME/.local/share}/GAME"
if [[ ! -d "$data_folder" ]]; then
mkdir -p "$data_folder"
echo "Created data folder in '$data_folder', please copy the game's data" \
"files there and run this launcher again."
exit 1
fi
cd "$data_folder"
/usr/bin/RSDKv4
exit_code=$?
if [[ $exit_code -eq 1 ]]; then
echo "Game exited with error code 1, check if data files are present in" \
"'$data_folder'."
fi
|