1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Changes related to Debian packaging, based on josch patch

- AUTHORS file is now in UTF-8
- tags for desktop files
- fixed some typos
- better reaction on --help and --version commands
- vcmibuilder should work with both avconf and ffmpeg
This commit is contained in:
Ivan Savenko
2014-03-20 18:17:40 +00:00
parent 333a51a48a
commit 760ae7d44a
10 changed files with 54 additions and 20 deletions

View File

@@ -533,6 +533,25 @@ static void handleCommandOptions(int argc, char *argv[])
}
po::notify(cmdLineOptions);
if (cmdLineOptions.count("help"))
{
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("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);
}
if (cmdLineOptions.count("version"))
{
printf("%s\n", GameConstants::VCMI_VERSION.c_str());
std::cout << VCMIDirs::get().genHelpString();
exit(0);
}
}
#if defined(__GNUC__) && !defined (__MINGW32__)