From a6a756056248ef5d69f85bcc489c7b9e79fe192d Mon Sep 17 00:00:00 2001 From: Vovanium Date: Sat, 30 Oct 2010 06:30:21 +0400 Subject: [PATCH] Draft version for per user search paths config (LibraryPath1, 2... in .kicad_common) --- common/edaappl.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/edaappl.cpp b/common/edaappl.cpp index 25034b3465..c6fd0034b6 100644 --- a/common/edaappl.cpp +++ b/common/edaappl.cpp @@ -626,6 +626,18 @@ void WinEDA_App::GetSettings(bool aReopenLastUsedDirectory) } m_EDA_Config->Read( wxT( "BgColor" ), &g_DrawBgColor ); + + /* Load per-user search paths from settings file */ + + wxString upath; + int i = 1; + while( 1 ) + { + upath = m_EDA_CommonConfig->Read( wxString::Format( wxT( "LibraryPath%d" ), i ), wxT( "" ) ); + if( upath.IsSameAs( wxT( "" ) ) ) break; + m_libSearchPaths.Add( upath ); + i ++; + } }