-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.cpp
33 lines (29 loc) · 831 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "Src/Vulkan.hpp"
std::string toLower(std::string str)
{
for (auto& a : str)
a = tolower(a);
return str;
}
int main(int argc, char** argv)
{
if (argc > 2)
{
USC::setPrefixDir(argv[2]);
if (std::string(argv[1]) == toLower("--help"))
USC::showHelpMessage();
else if (std::string(argv[1]) == toLower("--complete-regen"))
USC::recompileShaders();
else if (std::string(argv[1]) == toLower("--compile"))
USC::checkForCompile();
else
{
std::cout << "\x1b[31mInvalid parameter: " << argv[1] << "\x1b[0m" << std::endl;
USC::showHelpMessage();
}
return 0;
}
std::cout << "\x1b[31mNot enough arguments passed\x1b[0m" << std::endl;
USC::showHelpMessage();
return 0;
}