aboutsummarylogtreecommitdiffstats
path: root/brutal-doom
blob: 648ed6c0691dd5a2ffbe32c05f420ecf83f6cdd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [ -z "$XDG_CONFIG_HOME" ]; then
    XDG_CONFIG_HOME="$HOME/.config"
fi

if  [ ! -f "$XDG_CONFIG_HOME/brutal-doom/gzdoom.ini" ]; then
    if [ ! -d "$XDG_CONFIG_HOME/brutal-doom" ]; then
        mkdir "$XDG_CONFIG_HOME/brutal-doom"
    fi
    cp "/usr/share/games/brutal-doom/gzdoom.ini" "$XDG_CONFIG_HOME/brutal-doom/"
fi

for arg in "$@"; do 
    args="$args -file $arg" 
done

gzdoom -config "$XDG_CONFIG_HOME/brutal-doom/gzdoom.ini" $args