| 38 | } |
| 39 | |
| 40 | MPQStream::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 | |
| 46 | std::streamsize MPQStream::StartOfBlockForTesting() const { return _startOfBlock; } |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected