From c2318ea51d59d10347c2318fecc4a7fef0a8bca9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 7 Feb 2021 19:03:59 +0000 Subject: [PATCH] Fix windows native tools, now without symlinks Signed-off-by: falkTX --- source/frontend/carla_database.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/frontend/carla_database.py b/source/frontend/carla_database.py index f3fb87060..204daf7bc 100755 --- a/source/frontend/carla_database.py +++ b/source/frontend/carla_database.py @@ -1012,7 +1012,8 @@ class PluginRefreshW(QDialog): # ------------------------------------------------------------------------------------------------------------- # Internal stuff - hasNative = os.path.exists(os.path.join(self.host.pathBinaries, "carla-discovery-native")) + toolNative = "carla-discovery-native.exe" if WINDOWS else "carla-discovery-native" + hasNative = os.path.exists(os.path.join(self.host.pathBinaries, toolNative)) hasPosix32 = os.path.exists(os.path.join(self.host.pathBinaries, "carla-discovery-posix32")) hasPosix64 = os.path.exists(os.path.join(self.host.pathBinaries, "carla-discovery-posix64")) hasWin32 = os.path.exists(os.path.join(self.host.pathBinaries, "carla-discovery-win32.exe")) @@ -1082,14 +1083,12 @@ class PluginRefreshW(QDialog): if WINDOWS: if kIs64bit: - hasNative = hasWin64 hasNonNative = hasWin32 self.ui.ch_win64.setEnabled(False) self.ui.ch_win64.setVisible(False) self.ui.ico_win64.setVisible(False) self.ui.label_win64.setVisible(False) else: - hasNative = hasWin32 hasNonNative = hasWin64 self.ui.ch_win32.setEnabled(False) self.ui.ch_win32.setVisible(False)