Allowing combination of out_dir and of.
This commit is contained in:
parent
fc187498e8
commit
694dfb28ba
1 changed files with 7 additions and 3 deletions
|
@ -86,15 +86,19 @@ RecorderOpenFace::RecorderOpenFace(const std::string in_filename, RecorderOpenFa
|
||||||
valid[i] = true;
|
valid[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine output directory
|
|
||||||
bool output_found = false;
|
|
||||||
for (size_t i = 0; i < arguments.size(); ++i)
|
for (size_t i = 0; i < arguments.size(); ++i)
|
||||||
{
|
{
|
||||||
if (arguments[i].compare("-out_dir") == 0)
|
if (arguments[i].compare("-out_dir") == 0)
|
||||||
{
|
{
|
||||||
record_root = arguments[i + 1];
|
record_root = arguments[i + 1];
|
||||||
}
|
}
|
||||||
else if (!output_found && arguments[i].compare("-of") == 0)
|
}
|
||||||
|
|
||||||
|
// Determine output directory
|
||||||
|
bool output_found = false;
|
||||||
|
for (size_t i = 0; i < arguments.size(); ++i)
|
||||||
|
{
|
||||||
|
if (!output_found && arguments[i].compare("-of") == 0)
|
||||||
{
|
{
|
||||||
record_root = (boost::filesystem::path(record_root) / boost::filesystem::path(arguments[i + 1])).remove_filename().string();
|
record_root = (boost::filesystem::path(record_root) / boost::filesystem::path(arguments[i + 1])).remove_filename().string();
|
||||||
filename = path(boost::filesystem::path(arguments[i + 1])).replace_extension("").filename().string();
|
filename = path(boost::filesystem::path(arguments[i + 1])).replace_extension("").filename().string();
|
||||||
|
|
Loading…
Reference in a new issue