Skip to content
Snippets Groups Projects

Implements #217 cmd arg play ftl files

Merged Nicolas Pope requested to merge feature/217/termplay into master
2 files
+ 2
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -113,8 +113,6 @@ static void run(ftl::Configurable *root) {
// Command line path is ftl file
if (ext == "ftl") {
LOG(INFO) << "PATH TO CHECK: " << path;
// Create temp reader to count number of sources found in file
std::ifstream file;
file.open(path);
@@ -129,12 +127,12 @@ static void run(ftl::Configurable *root) {
LOG(INFO) << "Found " << (max_stream+1) << " sources in " << path;
// For each stream found, add a source object
for (int i=0; i<max_stream; ++i) {
root->getConfig()["sources"].push_back(nlohmann::json{{"uri",std::string("file://") + path + std::string("#") + std::to_string(i)}});
}
}
}
LOG(INFO) << (*root->get<nlohmann::json>("sources")).dump();
// Create a vector of all input RGB-Depth sources
auto sources = ftl::createArray<Source>(root, "sources", net);
Loading