Fix detection of other language simulators
This commit is contained in:
@@ -46,15 +46,16 @@ SimulatorFactory *getSimulatorFactory(const QString &name)
|
|||||||
QString simuName = name;
|
QString simuName = name;
|
||||||
while(1) {
|
while(1) {
|
||||||
qDebug() << "searching" << simuName << "simulator";
|
qDebug() << "searching" << simuName << "simulator";
|
||||||
if (registered_simulators.contains(simuName)) {
|
foreach (QString name, registered_simulators.keys()) {
|
||||||
return registered_simulators[simuName];
|
if (name.contains(simuName)) {
|
||||||
}
|
simuName = name;
|
||||||
else {
|
return registered_simulators[simuName];
|
||||||
int pos = simuName.lastIndexOf('-');
|
}
|
||||||
if (pos <= 0)
|
|
||||||
break;
|
|
||||||
simuName = simuName.mid(0, pos);
|
|
||||||
}
|
}
|
||||||
|
int pos = simuName.lastIndexOf('-');
|
||||||
|
if (pos <= 0)
|
||||||
|
break;
|
||||||
|
simuName = simuName.mid(0, pos);
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user