mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
add 'tps' command line argument
This commit is contained in:
parent
06e65911a3
commit
dbab645c94
4 changed files with 34 additions and 13 deletions
|
|
@ -33,5 +33,14 @@ namespace util {
|
|||
last = argv[pos];
|
||||
return argv[pos++];
|
||||
}
|
||||
|
||||
int nextInt() {
|
||||
auto text = next();
|
||||
try {
|
||||
return std::stoi(text);
|
||||
} catch (const std::exception& e) {
|
||||
throw std::runtime_error(e.what());
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue