From 98f867629b6624d15cf9ec256a530c0573db00a8 Mon Sep 17 00:00:00 2001 From: Cirilo Bernardo Date: Wed, 6 Jan 2016 06:48:27 +1100 Subject: [PATCH] Added debug printouts to help debug plugin search/loading on MSWin --- 3d-viewer/3d_cache/3d_plugin_manager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/3d-viewer/3d_cache/3d_plugin_manager.cpp b/3d-viewer/3d_cache/3d_plugin_manager.cpp index 49ec065c63..8081712ed1 100644 --- a/3d-viewer/3d_cache/3d_plugin_manager.cpp +++ b/3d-viewer/3d_cache/3d_plugin_manager.cpp @@ -329,6 +329,10 @@ void S3D_PLUGIN_MANAGER::checkPluginName( const wxString& aPath, aPluginList.push_back( wxpath ); + #ifdef DEBUG + std::cerr << " * [INFO] found 3D plugin '" << wxpath.ToUTF8() << "'\n"; + #endif + return; } @@ -340,6 +344,10 @@ void S3D_PLUGIN_MANAGER::checkPluginPath( const wxString& aPath, if( aPath.empty() ) return; + #ifdef DEBUG + std::cerr << " * [INFO] checking for 3D plugins in '" << aPath << "'\n"; + #endif + wxFileName path( wxFileName::DirName( aPath ) ); path.Normalize();