mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
Added Battle.net for NSLGameScanner
This commit is contained in:
parent
ea47652741
commit
e1c53dbc95
@ -2245,11 +2245,15 @@ if [[ -f "$battlenet_path1" ]]; then
|
|||||||
battlenetshortcutdirectory="\"$battlenet_path1\""
|
battlenetshortcutdirectory="\"$battlenet_path1\""
|
||||||
battlenetlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
battlenetlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||||
battlenetstartingdir="\"$(dirname "$battlenet_path1")\""
|
battlenetstartingdir="\"$(dirname "$battlenet_path1")\""
|
||||||
|
echo "export bnet_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||||
|
echo "Battlenet Launcher found at path 1"
|
||||||
elif [[ -f "$battlenet_path2" ]]; then
|
elif [[ -f "$battlenet_path2" ]]; then
|
||||||
# Battlenet Launcher is installed at path 2
|
# Battlenet Launcher is installed at path 2
|
||||||
battlenetshortcutdirectory="\"$battlenet_path2\""
|
battlenetshortcutdirectory="\"$battlenet_path2\""
|
||||||
battlenetlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/Battle.netLauncher/\" %command%"
|
battlenetlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/Battle.netLauncher/\" %command%"
|
||||||
battlenetstartingdir="\"$(dirname "$battlenet_path2")\""
|
battlenetstartingdir="\"$(dirname "$battlenet_path2")\""
|
||||||
|
echo "export bnet_launcher=Battle.netLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||||
|
echo "Battlenet Launcher found at path 2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$eaapp_path1" ]]; then
|
if [[ -f "$eaapp_path1" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user