mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #917, validate simulator setting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f816c927ee
commit
d214739912
@@ -54,6 +54,19 @@ namespace BlackCore
|
||||
static const QStringList enabledSimulators(BlackMisc::Simulation::CSimulatorPluginInfo::guessDefaultPlugins());
|
||||
return enabledSimulators;
|
||||
}
|
||||
|
||||
//! Simulator plugin identifiers valid?
|
||||
static bool isValid(const QStringList &pluginIdentifiers)
|
||||
{
|
||||
for (const QString &pluginIdentifier : pluginIdentifiers)
|
||||
{
|
||||
if (!BlackMisc::Simulation::CSimulatorPluginInfo::allIdentifiers().contains(pluginIdentifier))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
//! Uploading of crash dumps is enabled or disabled
|
||||
|
||||
Reference in New Issue
Block a user