summaryrefslogtreecommitdiff
path: root/defaults/assets
diff options
context:
space:
mode:
Diffstat (limited to 'defaults/assets')
-rwxr-xr-xdefaults/assets/fgmod.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/defaults/assets/fgmod.sh b/defaults/assets/fgmod.sh
index d48856d..da5091a 100755
--- a/defaults/assets/fgmod.sh
+++ b/defaults/assets/fgmod.sh
@@ -68,7 +68,7 @@ for arg in "$@"; do
fi
# Extract executable path from YAML
- exe_path=$(grep -E '^\s*exe:' "$config_file" | sed 's/.*exe:[[:space:]]*//')
+ exe_path=$(grep -E '^\s*exe:' "$config_file" | sed 's/.*exe:[[:space:]]*//' )
if [[ -n "$exe_path" ]]; then
exe_folder_path=$(dirname "$exe_path")
@@ -187,7 +187,13 @@ if [[ $# -gt 1 ]]; then
# Execute the original command
export SteamDeck=0
export WINEDLLOVERRIDES="$WINEDLLOVERRIDES,dxgi=n,b"
- exec "$@"
+
+ # Filter out leading -- separators (from Steam launch options)
+ while [[ $# -gt 0 && "$1" == "--" ]]; do
+ shift
+ done
+
+ "$@"
else
echo "Done!"
echo "----------------------------------------"