MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / open

Method open

source/base/StarAssets.cpp:948–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948IODevicePtr Assets::open(String const& path) const {
949 if (auto p = m_files.ptr(path))
950 return p->source->open(p->sourceName);
951 throw AssetException(strf("No such asset '{}'", path));
952}
953
954ByteArray Assets::read(String const& path) const {
955 if (auto p = m_files.ptr(path))

Callers 2

AssetsMethod · 0.45
readImageMethod · 0.45

Calls 2

strfFunction · 0.85
ptrMethod · 0.45

Tested by

no test coverage detected