MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / HandleCommandScanObjects

Function HandleCommandScanObjects

src/openrct2/command_line/RootCommands.cpp:392–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

CreateContextFunction · 0.85
CreateObjectRepositoryFunction · 0.85
ConstructMethod · 0.45

Tested by

no test coverage detected