Browse Source

Fix an assertion when looking for wine64

Closes #740
tags/v1.9.11
falkTX 7 years ago
parent
commit
f8f32b363d
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      source/backend/plugin/CarlaPluginBridge.cpp

+ 9
- 3
source/backend/plugin/CarlaPluginBridge.cpp View File

@@ -164,12 +164,18 @@ protected:
String wineCMD;

if (options.wine.executable != nullptr && options.wine.executable[0] != '\0')
{
wineCMD = options.wine.executable;

if (fBinary.endsWithIgnoreCase("64.exe")
&& options.wine.executable[0] == CARLA_OS_SEP
&& File(wineCMD + "64").existsAsFile())
wineCMD += "64";
}
else
{
wineCMD = "wine";

if (fBinary.endsWithIgnoreCase("64.exe") && File(wineCMD + "64").existsAsFile())
wineCMD += "64";
}

arguments.add(wineCMD);
}


Loading…
Cancel
Save