mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
[Simulator] Fix standalone simulator setting SD card path.
This commit is contained in:
parent
992c4c4822
commit
c67fdcfd6e
1 changed files with 6 additions and 4 deletions
|
@ -382,15 +382,17 @@ int main(int argc, char *argv[])
|
||||||
g.simuLastEepe(simOptions.eepromFileName);
|
g.simuLastEepe(simOptions.eepromFileName);
|
||||||
|
|
||||||
uint32_t flags = SIMULATOR_FLAGS_STANDALONE;
|
uint32_t flags = SIMULATOR_FLAGS_STANDALONE;
|
||||||
|
SimulatorInterface * simulator = factory->create();
|
||||||
|
simulator->setSdPath(g.profile[simOptions.profileId].sdPath(), "");
|
||||||
|
|
||||||
if (factory->type() == BOARD_HORUS)
|
if (factory->type() == BOARD_HORUS)
|
||||||
dialog = new SimulatorDialogHorus(NULL, factory->create(), flags);
|
dialog = new SimulatorDialogHorus(NULL, simulator, flags);
|
||||||
else if (factory->type() == BOARD_FLAMENCO)
|
else if (factory->type() == BOARD_FLAMENCO)
|
||||||
dialog = new SimulatorDialogFlamenco(NULL, factory->create(), flags);
|
dialog = new SimulatorDialogFlamenco(NULL, simulator, flags);
|
||||||
else if (factory->type() == BOARD_TARANIS_X9D || factory->type() == BOARD_TARANIS_X9DP || factory->type() == BOARD_TARANIS_X9E)
|
else if (factory->type() == BOARD_TARANIS_X9D || factory->type() == BOARD_TARANIS_X9DP || factory->type() == BOARD_TARANIS_X9E)
|
||||||
dialog = new SimulatorDialogTaranis(NULL, factory->create(), flags | SIMULATOR_FLAGS_S1 | SIMULATOR_FLAGS_S2);
|
dialog = new SimulatorDialogTaranis(NULL, simulator, flags | SIMULATOR_FLAGS_S1 | SIMULATOR_FLAGS_S2);
|
||||||
else
|
else
|
||||||
dialog = new SimulatorDialog9X(NULL, factory->create(), flags);
|
dialog = new SimulatorDialog9X(NULL, simulator, flags);
|
||||||
|
|
||||||
dialog->setRadioProfileId(simOptions.profileId);
|
dialog->setRadioProfileId(simOptions.profileId);
|
||||||
dialog->start(simOptions.eepromFileName.toLatin1().constData());
|
dialog->start(simOptions.eepromFileName.toLatin1().constData());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue