Push the whole file path in included files
This commit is contained in:
parent
c6cc205425
commit
d887f61723
1 changed files with 3 additions and 3 deletions
|
|
@ -28,10 +28,10 @@ bool sfz::Parser::loadSfzFile(const fs::path& file)
|
||||||
if (!fs::exists(sfzFile))
|
if (!fs::exists(sfzFile))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
originalDirectory = file.parent_path();
|
originalDirectory = sfzFile.parent_path();
|
||||||
includedFiles.push_back(file);
|
includedFiles.push_back(sfzFile);
|
||||||
std::vector<std::string> lines;
|
std::vector<std::string> lines;
|
||||||
readSfzFile(file, lines);
|
readSfzFile(sfzFile, lines);
|
||||||
|
|
||||||
aggregatedContent = absl::StrJoin(lines, " ");
|
aggregatedContent = absl::StrJoin(lines, " ");
|
||||||
absl::string_view aggregatedView { aggregatedContent };
|
absl::string_view aggregatedView { aggregatedContent };
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue