Skip to content
Snippets Groups Projects
Commit 1c88d656 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Use config index to load snap

parent 5f19136f
No related branches found
No related tags found
No related merge requests found
Pipeline #11570 passed
......@@ -105,7 +105,7 @@ ftl::rgbd::detail::Source *Source::_createFileImpl(const ftl::URI &uri) {
} else if (ext == "tar" || ext == "gz") {
#ifdef HAVE_LIBARCHIVE
ftl::rgbd::SnapshotReader reader(path);
return new ftl::rgbd::detail::SnapshotSource(this, reader, "0"); // TODO Get ID from config
return new ftl::rgbd::detail::SnapshotSource(this, reader, std::to_string(value("index", 0))); // TODO Get ID from config
#else
LOG(ERROR) << "Cannot read snapshots, libarchive not installed";
return nullptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment