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

Method ObjectFileIndex

src/openrct2/object/ObjectRepository.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 public:
84 explicit ObjectFileIndex(IObjectRepository& objectRepository, const IPlatformEnvironment& env)
85 : FileIndex(
86 "object index", kMagicNumber, kVersion, env.GetFilePath(PathId::cacheObjects), std::string(kPattern),
87 std::vector<std::string>{
88 env.GetDirectoryPath(DirBase::openrct2, DirId::objects),
89 env.GetDirectoryPath(DirBase::user, DirId::objects),
90 })
91 {
92 }
93
94 public:
95 std::optional<ObjectRepositoryItem> Create([[maybe_unused]] int32_t language, const std::string& path) const override

Callers

nothing calls this directly

Calls 2

GetFilePathMethod · 0.80
GetDirectoryPathMethod · 0.80

Tested by

no test coverage detected