summarylogtreecommitdiffstats
path: root/fl-studio-integrator
blob: b94cc2f5cb81285d49408c95797c2f35407cd581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#WINE="" # to use a different Wine version than system, for example, $HOME/some-wine
WINEPREFIX="" # for example, $HOME/Games/fl-studio
EXE="drive_c/Program Files/Image-Line/FL Studio/FL64.exe" # change this if it was installed elsewhere
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 "$WINEPREFIX/$EXE" "${args[@]}"