blob: 5a0cc48149acc0310670090395301c2d7d4fc561 (
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/game/StardewModdingAPI --mods-path "$SMAPI_MODS_PATH" "$@"
|