mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
790c1cc0aa
This way new players will get DDNet directory, old ones can switch directory if they want, or keep using the old one. If we ever enforce a switch in a future version, this will make it easier since older DDNet versions will also support the DDNet directory already.
22 lines
477 B
Bash
Executable file
22 lines
477 B
Bash
Executable file
#!/bin/sh
|
|
case "$(uname -s)" in
|
|
CYGWIN*|MINGW*|MSYS*)
|
|
if [ -d "$APPDATA/DDNet/" ]; then
|
|
explorer "$APPDATA/DDNet/"
|
|
else
|
|
explorer "$APPDATA/Teeworlds/"
|
|
fi;;
|
|
Darwin*)
|
|
if [ -d "$HOME/Library/Application Support/DDNet/" ]; then
|
|
open "$HOME/Library/Application Support/DDNet/"
|
|
else
|
|
open "$HOME/Library/Application Support/Teeworlds/"
|
|
fi;;
|
|
*)
|
|
if [ -d "$HOME/.ddnet/" ]; then
|
|
xdg-open "$HOME/.ddnet/"
|
|
else
|
|
xdg-open "$HOME/.teeworlds/"
|
|
fi;;
|
|
esac
|