MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / MPQStream

Method MPQStream

src/Abyss/FileSystem/MPQ.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40MPQStream::MPQStream(HANDLE mpq, const std::string &fileName) {
41 if (!SFileOpenFileEx(mpq, fileName.c_str(), SFILE_OPEN_FROM_MPQ, &_mpqFile)) {
42 throw std::runtime_error(absl::StrCat("Failed to open file '", fileName, "' from MPQ"));
43 }
44}
45
46std::streamsize MPQStream::StartOfBlockForTesting() const { return _startOfBlock; }
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected