Refs #868 Use CXPlaneUtil::xplaneRootDir() in the X-Plane plugin

This commit is contained in:
Klaus Basan
2017-03-07 19:30:44 +01:00
committed by Mathew Sutcliffe
parent f25d569ae8
commit 99c792dd4b
2 changed files with 4 additions and 14 deletions

View File

@@ -140,17 +140,9 @@ namespace BlackMisc
return xbusLegacy;
}
}
if (!xplane10Dir().isEmpty())
{
QString xbusLegacy = xplane10Dir() + legacyPath;
if (QDir(xbusLegacy).exists())
{
return xbusLegacy;
}
}
if (!xplane9Dir().isEmpty())
{
QString xbusLegacy = xplane9Dir() + legacyPath;
for (auto func: {&CXPlaneUtil::xplane11Dir, &CXPlaneUtil::xplane10Dir, &CXPlaneUtil::xplane9Dir}) {
QString xbusLegacy = func() + legacyPath;
if (QDir(xbusLegacy).exists())
{
return xbusLegacy;