Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions defaults/assets/fgmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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 "----------------------------------------"
Expand Down