From d6c8aef3276b42d688a74246ea539bd43128fcbe Mon Sep 17 00:00:00 2001 From: dolik Date: Thu, 26 Jan 2012 17:35:16 +0000 Subject: [PATCH] .ide: Support multiple preconfigured *.bm on first run git-svn-id: svn://ultimatepp.org/upp/trunk@4470 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Install.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/uppsrc/ide/Install.cpp b/uppsrc/ide/Install.cpp index 50469075d..7a22c61cb 100644 --- a/uppsrc/ide/Install.cpp +++ b/uppsrc/ide/Install.cpp @@ -335,9 +335,14 @@ bool Install() if(!(InstallWizard().Run()&(IDOK|IDCANCEL))) return false; String supp=UpdaterCfg().globalsrc; - String bm = ConfigFile("GCC.bm"); - if(IsNull(LoadFile(bm))) - SaveFile(bm, LoadFile(AppendFileName(supp, "GCC.bm"))); + FindFile ff(ConfigFile("*.bm")); + if(!ff) { + ff.Search(AppendFileName(supp, "*.bm")); + while(ff) { + FileCopy(ff.GetPath(), ConfigFile(ff.GetName())); + ff.Next(); + } + } // 2008/06/01 -- add valgrind suppression file String ValgSupp = ConfigFile("valgrind.supp"); if(IsNull(LoadFile(ValgSupp)))