| 397 | } |
| 398 | |
| 399 | void App::applyCommandLineOptions(const CommandLineParser::Options& options) |
| 400 | { |
| 401 | if (options.app.revertToFactorySettings) { |
| 402 | appshellConfiguration()->revertToFactorySettings(options.app.revertToFactorySettings.value()); |
| 403 | } |
| 404 | |
| 405 | startupScenario()->setStartupType(options.startup.type); |
| 406 | |
| 407 | if (options.startup.scoreUrl.has_value()) { |
| 408 | project::ProjectFile file { options.startup.scoreUrl.value() }; |
| 409 | |
| 410 | if (options.startup.scoreDisplayNameOverride.has_value()) { |
| 411 | file.displayNameOverride = options.startup.scoreDisplayNameOverride.value(); |
| 412 | } |
| 413 | |
| 414 | startupScenario()->setStartupScoreFile(file); |
| 415 | } |
| 416 | |
| 417 | if (options.app.loggerLevel) { |
| 418 | globalModule.setLoggerLevel(options.app.loggerLevel.value()); |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | int App::processAudioPluginRegistration(const CommandLineParser::AudioPluginRegistration& task) |
| 423 | { |
nothing calls this directly
no test coverage detected