Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions WindowsMRAssetConverter/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,19 @@ void CommandLine::ParseCommandLineArguments(
}
}

if (!std::experimental::filesystem::exists(inputFilePath))
{
throw std::invalid_argument("Input file not found.");
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line after brace


for (auto& lodFilePath : lodFilePaths)
{
if (!std::experimental::filesystem::exists(lodFilePath))
{
throw std::invalid_argument("Lod file not found.");
}
}

if (outFile.empty())
{
std::wstring inputFilePathWithoutExtension = inputFilePath;
Expand Down