Support for relative path for files in mix

File path in mix session file add a relative reference to the location of the session mix file. If SessionCreator cannot find the absolute path, it tries to load the file at the relative location. Done for MediaSource, SessionFileSource and SequenceSource.
This commit is contained in:
Bruno
2021-07-30 00:22:44 +02:00
parent fc91e7cbdd
commit d2a576c99c
10 changed files with 165 additions and 75 deletions

View File

@@ -53,6 +53,8 @@ namespace SystemToolkit
std::string path_relative_to_path(const std::string& absolutePath, const std::string& relativeTo);
std::string path_absolute_from_path(const std::string& relativePath, const std::string& relativeTo);
// true of file exists
bool file_exists(const std::string& path);