Tools: Automatically create directories for tools (#17971)

This commit is contained in:
keke222
2016-10-20 23:32:49 +02:00
committed by Shauren
parent 7fa191f774
commit a3b953952a
3 changed files with 16 additions and 9 deletions

View File

@@ -26,14 +26,21 @@ int main(int argc, char* argv[])
{
Trinity::Banner::Show("VMAP assembler", [](char const* text) { std::cout << text << std::endl; }, nullptr);
if (argc != 3)
std::string src = "Buildings";
std::string dest = "vmaps";
if (argc > 3)
{
std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl;
return 1;
}
std::string src = argv[1];
std::string dest = argv[2];
else
{
if (argc > 1)
src = argv[1];
if (argc > 2)
dest = argv[2];
}
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;