diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-27 19:11:03 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-27 19:11:03 +0200 |
commit | e0e787716f2fc22021c837cd93eb647ce9440b26 (patch) | |
tree | 1f1ade54e44f17964b26b7421afb8be7c75961a8 /src/ncmpcpp.cpp | |
parent | bac6df8c6cb7badb72c2902cd6ea61d184f2994c (diff) |
require MPD >= 0.14
Diffstat (limited to 'src/ncmpcpp.cpp')
-rw-r--r-- | src/ncmpcpp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 68cf98cd..879aff7c 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -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 |