|
From: Tapio V. <aa...@us...> - 2010-08-12 21:27:31
|
Module: performous
Branch: joinmenu
Commit: 26c3c2f97540bb7397fc76b82f2ef5dba94dc39a
Author: Tapio Vierros <tap...@gm...>
Date: Sun Aug 8 23:15:57 2010 +0300
Hack to get rid of confusing error message on Windows.
---
libs/plugin++/src/loader.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libs/plugin++/src/loader.cc b/libs/plugin++/src/loader.cc
index c7bdb4c..a21ea30 100644
--- a/libs/plugin++/src/loader.cc
+++ b/libs/plugin++/src/loader.cc
@@ -65,6 +65,10 @@ loader::loader(fs::path const& folder) {
}
// Load the contents of each folder
for (std::set<fs::path>::const_iterator it = paths.begin(); it != paths.end(); ++it) load(*it);
+#ifndef _WIN32
+ // HACK: ifdeffing this message out since it would be consfusing on Windows,
+ // where PortAudio is built into libda (and thus no plugins used).
if (dlls.empty()) std::cerr << "No plugins found. Try setting PLUGIN_PATH to the folder with the plugins." << std::endl;
-}
+#endif
+}
|