Set defaults for arguments
This commit is contained in:
parent
291c23124f
commit
93449bd39a
|
@ -10,11 +10,14 @@
|
||||||
static constexpr int DEFAULT_SCREEN_WIDTH = 1280;
|
static constexpr int DEFAULT_SCREEN_WIDTH = 1280;
|
||||||
static constexpr int DEFAULT_SCREEN_HEIGHT = 720;
|
static constexpr int DEFAULT_SCREEN_HEIGHT = 720;
|
||||||
static constexpr int DEFAULT_SPLITTING = 4;
|
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);
|
parse_result = tryConvertInput(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue