require MPD >= 0.14

This commit is contained in:
Andrzej Rybczak
2012-08-27 19:11:03 +02:00
parent bac6df8c6c
commit e0e787716f
2 changed files with 11 additions and 14 deletions

View File

@@ -119,6 +119,12 @@ int main(int argc, char **argv)
if (!ConnectToMPD())
exit(1);
if (Mpd.Version() < 14)
{
std::cout << "MPD < 0.14 is not supported, please upgrade.\n";
exit(1);
}
CreateDir(Config.ncmpcpp_directory);
// always execute these commands, even if ncmpcpp use exit function