mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #928 Parse and load OBJ8 CSL packages.
This commit is contained in:
@@ -476,7 +476,8 @@ namespace BlackSimPlugin
|
||||
|
||||
QString CSimulatorXPlane::findCslPackage(const QString &modelFile)
|
||||
{
|
||||
QDir dir = QFileInfo(modelFile).dir();
|
||||
const QFileInfo info(modelFile);
|
||||
QDir dir = info.isDir() ? QDir(modelFile) : info.dir();
|
||||
do
|
||||
{
|
||||
if (dir.exists(QStringLiteral("xsb_aircraft.txt")))
|
||||
|
||||
Reference in New Issue
Block a user