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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user