summarylogtreecommitdiffstats
path: root/fl-studio-integrator-elm
blob: d396f532ea0b7fcf58503af4cbfbe1a5e47d6af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#WINE="" # to use a different Wine version than system, for example, $HOME/some-wine
WINEPREFIX="" # for example, $HOME/Games/fl-studio
export WINEPREFIX=$WINEPREFIX
export WINEDEBUG=-all
#export PIPEWIRE_QUANTUM=2048/48000 # to configure Pipewire latency as a fraction and a samplerate

#### Do not edit
declare -a args

for arg; do
  if [[ "${arg:0:1}" = "-" ]]; then
    args+=("${arg/#-//}")
  else
    args+=("$(winepath -w "$arg")")
  fi
done
####

wine "${args[@]}"