Push the whole file path in included files

This commit is contained in:
Paul Ferrand 2020-02-12 09:11:25 +01:00
parent c6cc205425
commit d887f61723

View file

@ -28,10 +28,10 @@ bool sfz::Parser::loadSfzFile(const fs::path& file)
if (!fs::exists(sfzFile))
return false;
originalDirectory = file.parent_path();
includedFiles.push_back(file);
originalDirectory = sfzFile.parent_path();
includedFiles.push_back(sfzFile);
std::vector<std::string> lines;
readSfzFile(file, lines);
readSfzFile(sfzFile, lines);
aggregatedContent = absl::StrJoin(lines, " ");
absl::string_view aggregatedView { aggregatedContent };