1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Few minor code improvements

* All command line options now case insensetive.
* SDL_VIDEO_X11_DGAMOUS unused in SDL2 so it's removed.
* Added current year into the --help output for client and server.
* Moved DO_NOT_START_SERVER into session settings.
This commit is contained in:
Arseniy Shestakov
2017-06-26 02:40:48 +03:00
parent 6c8192956e
commit eeff7ee315
5 changed files with 15 additions and 28 deletions

View File

@@ -562,15 +562,14 @@ static void handleCommandOptions(int argc, char *argv[])
}
po::notify(cmdLineOptions);
if (cmdLineOptions.count("help"))
{
auto time = std::time(0);
printf("%s - A Heroes of Might and Magic 3 clone\n", GameConstants::VCMI_VERSION.c_str());
printf("Copyright (C) 2007-2014 VCMI dev team - see AUTHORS file\n");
printf("Copyright (C) 2007-%d VCMI dev team - see AUTHORS file\n", std::localtime(&time)->tm_year + 1900);
printf("This is free software; see the source for copying conditions. There is NO\n");
printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
printf("\n");
printf("Usage:\n");
std::cout << opts;
exit(0);
}