mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add compatibility with other files
This commit is contained in:
parent
62125b14b4
commit
91ad9cc64c
9 changed files with 25 additions and 25 deletions
|
|
@ -48,14 +48,14 @@ bool perform_keyword(
|
|||
if (!fs::is_directory(fs::path(token))) {
|
||||
throw std::runtime_error(token + " is not a directory");
|
||||
}
|
||||
paths.setResources(fs::path(token));
|
||||
paths.setResourcesFolder(fs::path(token));
|
||||
std::cout << "resources folder: " << token << std::endl;
|
||||
} else if (keyword == "--dir") {
|
||||
auto token = reader.next();
|
||||
if (!fs::is_directory(fs::path(token))) {
|
||||
fs::create_directories(fs::path(token));
|
||||
}
|
||||
paths.setUserfiles(fs::path(token));
|
||||
paths.setUserFilesFolder(fs::path(token));
|
||||
std::cout << "userfiles folder: " << token << std::endl;
|
||||
} else if (keyword == "--help" || keyword == "-h") {
|
||||
std::cout << "VoxelEngine command-line arguments:" << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue