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

Method ScanObject

src/openrct2/object/ObjectRepository.cpp:458–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456 }
457
458 void ScanObject(const std::string& path)
459 {
460 auto language = LocalisationService_GetCurrentLanguage();
461 if (auto result = _fileIndex.Create(language, path); result.has_value())
462 {
463 AddItem(result.value());
464 }
465 }
466
467 // 0x0098DA2C
468 static constexpr std::array<ChunkEncoding, 11> kLegacyObjectEntryGroupEncoding = {

Callers

nothing calls this directly

Calls 3

valueMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected