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

Function GetReader

src/openrct2/core/Imaging.cpp:276–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 }
275
276 static ImageReaderFunc GetReader(ImageFormat format)
277 {
278 auto result = _readerImplementations.find(format);
279 if (result != _readerImplementations.end())
280 {
281 return result->second;
282 }
283 return {};
284 }
285
286 void SetReader(ImageFormat format, ImageReaderFunc impl)
287 {

Callers 1

ReadFromStreamFunction · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.65

Tested by

no test coverage detected