mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T199, all file names of multi simulator caches
This commit is contained in:
@@ -47,6 +47,17 @@ namespace BlackMisc
|
||||
return this->getCachedModels(simulator).size();
|
||||
}
|
||||
|
||||
QStringList IMultiSimulatorModelCaches::getAllFilenames() const
|
||||
{
|
||||
return QStringList(
|
||||
{
|
||||
this->getFilename(CSimulatorInfo::FS9),
|
||||
this->getFilename(CSimulatorInfo::FSX),
|
||||
this->getFilename(CSimulatorInfo::P3D),
|
||||
this->getFilename(CSimulatorInfo::XPLANE)
|
||||
});
|
||||
}
|
||||
|
||||
CSimulatorInfo IMultiSimulatorModelCaches::getSimulatorForFilename(const QString &filename) const
|
||||
{
|
||||
if (filename.isEmpty()) { return CSimulatorInfo(); }
|
||||
|
||||
Reference in New Issue
Block a user