MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / openFileStream

Method openFileStream

radiantcore/map/MapResource.cpp:338–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338stream::MapResourceStream::Ptr MapResource::openFileStream(const std::string& path)
339{
340 // Call the factory method to acquire a stream
341 auto stream = stream::MapResourceStream::OpenFromPath(path);
342
343 if (!stream->isOpen())
344 {
345 throw OperationException(fmt::format(_("Could not open file:\n{0}"), path));
346 }
347
348 return stream;
349}
350
351stream::MapResourceStream::Ptr MapResource::openMapfileStream()
352{

Callers

nothing calls this directly

Calls 4

OperationExceptionClass · 0.85
formatFunction · 0.50
_Function · 0.50
isOpenMethod · 0.45

Tested by

no test coverage detected