Allow specifying {stdin} to specify that input is in stdin. Closes #709

This commit is contained in:
baldurk
2018-09-07 14:24:45 +01:00
parent c091dfa685
commit 6bfb426ab1
2 changed files with 19 additions and 6 deletions
@@ -638,10 +638,11 @@ bool SettingsDialog::editTool(int existing, ShaderProcessingTool &tool)
message = tr("Output type cannot be unknown.");
}
else if(tool.tool == KnownShaderTool::Unknown &&
!QString(tool.args).contains(lit("{input_file}")))
!QString(tool.args).contains(lit("{input_file}")) &&
!QString(tool.args).contains(lit("{stdin}")))
{
invalid = true;
message = tr("Custom tool arguments must include at least {input_file}.");
message = tr("Custom tool arguments must include at least {input_file} or {stdin}.");
}
else
{