Skip to content
Snippets Groups Projects
Commit b8105853 authored by Janik Zikovsky's avatar Janik Zikovsky
Browse files

Refs #1979: Workaround to look for long names for SEQ and PG3.

parent a63b8000
No related branches found
No related tags found
No related merge requests found
......@@ -866,6 +866,16 @@ const std::string ConfigServiceImpl::getInstrumentFilename(const std::string& in
std::transform(instrument.begin(), instrument.end(), instrument.begin(), toupper);
std::string fullPathIDF = directoryName + "/" + instrument + "_Definition.xml";
// Special hack to look for long name versions
if (!Poco::File(fullPathIDF).exists())
{
if (instrument == "SEQ")
return this->getInstrumentFilename("SEQUOIA");
if (instrument == "PG3")
return this->getInstrumentFilename("POWGEN");
}
return fullPathIDF;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment