Set defaults for arguments

This commit is contained in:
NaiJi ✨ 2021-03-30 20:32:25 +03:00
parent 291c23124f
commit 93449bd39a
1 changed files with 5 additions and 2 deletions

View File

@ -10,11 +10,14 @@
static constexpr int DEFAULT_SCREEN_WIDTH = 1280;
static constexpr int DEFAULT_SCREEN_HEIGHT = 720;
static constexpr int DEFAULT_SPLITTING = 4;
static const std::string DEFAULT_PATH = ".";
static const char * const DEFAULT_PATH = ".";
/////////////////////////////////////////////////////////////////////////
ArgsProcessor::ArgsProcessor(int argc, char **argv)
ArgsProcessor::ArgsProcessor(int argc, char **argv) :
image_splitting(DEFAULT_SPLITTING),
game_resolution({DEFAULT_SCREEN_WIDTH, DEFAULT_SCREEN_HEIGHT}),
image_path(DEFAULT_PATH)
{
parse_result = tryConvertInput(argc, argv);
}