diff --git a/src/blackcore/simulator.cpp b/src/blackcore/simulator.cpp index d53136410..059ea0b37 100644 --- a/src/blackcore/simulator.cpp +++ b/src/blackcore/simulator.cpp @@ -31,7 +31,17 @@ namespace BlackCore return status; } + CSimulatorInfo ISimulator::getSimulatorInfo() const { + return CSimulatorInfo(this->getSimulatorPluginInfo().getSimulatorInfo()); + } + + void ISimulator::registerHelp() + { + if (BlackMisc::CSimpleCommandParser::registered("BlackCore::ISimulator")) { return; } + BlackMisc::CSimpleCommandParser::registerCommand({".drv", "alias: .driver .plugin"}); + BlackMisc::CSimpleCommandParser::registerCommand({".drv unload", "unload driver"}); + if (BlackConfig::CBuildConfig::isCompiledWithFsuipcSupport()) { BlackMisc::CSimpleCommandParser::registerCommand({".drv fsuipc on|off", "enable/disable FSUIPC (if applicable)"}); } diff --git a/src/blackcore/simulator.h b/src/blackcore/simulator.h index a743cc066..ee0903f3f 100644 --- a/src/blackcore/simulator.h +++ b/src/blackcore/simulator.h @@ -170,16 +170,7 @@ namespace BlackCore virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) = 0; //! Register help - static void registerHelp() - { - if (BlackMisc::CSimpleCommandParser::registered("BlackCore::ISimulator")) { return; } - BlackMisc::CSimpleCommandParser::registerCommand({".drv", "alias: .driver .plugin"}); - BlackMisc::CSimpleCommandParser::registerCommand({".drv unload", "unload driver"}); - if (BlackConfig::CBuildConfig::isCompiledWithFsuipcSupport()) - { - BlackMisc::CSimpleCommandParser::registerCommand({".drv fsuipc on|off", "enable/disable FSUIPC (if applicable)"}); - } - } + static void registerHelp(); //! Status to string static QString statusToString(SimulatorStatus status);