summarylogtreecommitdiffstats
path: root/smapi.sh
blob: 90595c3edc5a8d896e98a8a40ad7531affbbf4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
user_lang=$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1)


if [ $user_lang == "ru" ]; then
    SMAPI_MODS_PATH=$(kdialog --title "Выберите дерикторию которая содержит Моды для Stardew Valley" --getexistingdirectory $HOME)
    status=$?
else
    SMAPI_MODS_PATH=$(kdialog --title "Choose directory that contains Mods for Stardew Valley" --getexistingdirectory $HOME)
    status=$?
fi
clear
[ $status == 1 ] && exit 1


if [ $user_lang == "ru" ]; then
    kdialog --icon "smapi" --title "SMAPI" --passivepopup "Игра скоро запустится..." 10 &
else
    kdialog --icon "smapi" --title "SMAPI" --passivepopup "Game will starts soon..." 10 &
fi

/opt/gog-stardew-valley/StardewModdingAPI --mods-path "$SMAPI_MODS_PATH" "$@"