Mercurial > hg > orthanc-wsi
diff ViewerPlugin/Plugin.cpp @ 5:77b76c1a213f
check the version of the Orthanc core
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Oct 2016 13:34:49 +0200 |
parents | 4a7a53257c7d |
children | 62adabb8c122 |
line wrap: on
line diff
--- a/ViewerPlugin/Plugin.cpp Mon Oct 24 09:09:13 2016 +0200 +++ b/ViewerPlugin/Plugin.cpp Wed Oct 26 13:34:49 2016 +0200 @@ -330,6 +330,12 @@ return -1; } + if (!OrthancPlugins::CheckMinimalOrthancVersion(context_, 1, 1, 0)) + { + // We need the "/instances/.../frames/.../raw" URI that was introduced in Orthanc 1.1.0 + return -1; + } + // Limit the number of PNG transcoders to the number of available // hardware threads (e.g. number of CPUs or cores or // hyperthreading units)