logic: vs solution parsing hotfix

Fixed bugged path building when project items have absolute paths
Based on, but not a fix for UrHo3D parsing crash

bug id = 30
This commit is contained in:
wrongway88
2016-02-25 12:40:18 +01:00
parent e7a2d5a724
commit cfceb21e7e
2 changed files with 179 additions and 0 deletions
@@ -208,6 +208,12 @@ std::vector<std::string> SolutionParserVisualStudio::findProjectItems()
{
std::string filePath = child->Attribute("Include");
if (boost::filesystem::exists(filePath) && checkValidFileExtension(filePath, validFileExtensions))
{
projectItems.push_back(filePath);
continue;
}
if (relativeProjectPaths[i].size() > 0)
{
filePath = relativeProjectPaths[i] + "/" + filePath;
@@ -226,6 +232,12 @@ std::vector<std::string> SolutionParserVisualStudio::findProjectItems()
{
std::string filePath = child->Attribute("Include");
if (boost::filesystem::exists(filePath) && checkValidFileExtension(filePath, validFileExtensions))
{
projectItems.push_back(filePath);
continue;
}
if (relativeProjectPaths[i].size() > 0)
{
filePath = relativeProjectPaths[i] + "/" + filePath;