From c115c527ca51122eb163d4f0d336b1b57a133562 Mon Sep 17 00:00:00 2001 From: Felix Faber Date: Fri, 19 Apr 2024 07:55:29 +0200 Subject: [PATCH] Fixing up errors I introduced during rebasing, sorry! --- lib/importproject.cpp | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index 938cae9098f3..e4f10df1972f 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -451,30 +451,7 @@ bool ImportProject::importSln(std::istream &istr, const std::string &path, const std::vector sharedItemsProjects{}; while (std::getline(istr,line)) { if (!startsWith(line,"Project(")) - continue; - - // NOTE(Felix): Custom code for vcxitems - { - const std::string::size_type pos = line.find(".vcxitems"); - if (pos != std::string::npos) - { - const std::string::size_type pos1 = line.rfind('\"', pos); - if (pos1 != std::string::npos) - { - std::string vcxitems(line.substr(pos1 + 1, pos - pos1 + 8)); - vcxitems = Path::toNativeSeparators(std::move(vcxitems)); - if (!Path::isAbsolute(vcxitems)) - vcxitems = path + vcxitems; - vcxitems = Path::fromNativeSeparators(std::move(vcxitems)); - if (!importVcxitems(vcxitems, variables, emptyString, fileFilters)) { - printError("failed to load '" + vcxitems + "' from Visual Studio solution"); - return false; - } - found = true; - } - } - } - + continue; const std::string::size_type pos = line.find(".vcxproj"); if (pos == std::string::npos) continue; @@ -486,7 +463,7 @@ bool ImportProject::importSln(std::istream &istr, const std::string &path, const if (!Path::isAbsolute(vcxproj)) vcxproj = path + vcxproj; vcxproj = Path::fromNativeSeparators(std::move(vcxproj)); - if (!importVcxproj(vcxproj, variables, emptyString, fileFilters)) { + if (!importVcxproj(vcxproj, variables, emptyString, fileFilters, sharedItemsProjects)) { printError("failed to load '" + vcxproj + "' from Visual Studio solution"); return false; } @@ -835,9 +812,9 @@ bool ImportProject::importVcxproj(const std::string &filename, std::map