mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Refs #868 Use CXPlaneUtil::xplaneRootDir() in the X-Plane plugin
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f25d569ae8
commit
99c792dd4b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user