| 390 | } |
| 391 | |
| 392 | static ExitCode HandleCommandScanObjects([[maybe_unused]] CommandLineArgEnumerator* enumerator) |
| 393 | { |
| 394 | ExitCode result = CommandLine::HandleCommandDefault(); |
| 395 | if (result != ExitCode::launch) |
| 396 | { |
| 397 | return result; |
| 398 | } |
| 399 | |
| 400 | gOpenRCT2Headless = true; |
| 401 | gOpenRCT2NoGraphics = true; |
| 402 | |
| 403 | auto context = CreateContext(); |
| 404 | auto& env = context->GetPlatformEnvironment(); |
| 405 | auto objectRepository = CreateObjectRepository(env); |
| 406 | objectRepository->Construct(Config::Get().general.language); |
| 407 | return ExitCode::ok; |
| 408 | } |
| 409 | |
| 410 | #if defined(_WIN32) |
| 411 | static ExitCode HandleCommandRegisterShell([[maybe_unused]] CommandLineArgEnumerator* enumerator) |
nothing calls this directly
no test coverage detected