We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb6c7d commit d10bdd4Copy full SHA for d10bdd4
tools/nsc/main.cpp
@@ -36,8 +36,8 @@ class ShaderCompiler final : public system::IApplicationFramework
36
return false;
37
}
38
39
- m_arguments = std::vector<std::string>(argv.begin() + 2, argv.end()); // turn argv into vector for convenience
40
- std::string file_to_compile = argv[1];
+ m_arguments = std::vector<std::string>(argv.begin() + 1, argv.end()-1); // turn argv into vector for convenience
+ std::string file_to_compile = argv.back();
41
42
if (!m_system->exists(file_to_compile, IFileBase::ECF_READ)) {
43
m_logger->log("Incorrect arguments. Expecting second argument to be filename of the shader intended to compile.", ILogger::ELL_ERROR);
0 commit comments