| 210 | struct BodyReader : TransferProto::ByteReader { |
| 211 | FSStream input; |
| 212 | explicit BodyReader(const std::u16string& path, u64 startOffset) : input(Archive::sdmc(), path, FS_OPEN_READ) |
| 213 | { |
| 214 | if (input.good()) { |
| 215 | input.offset((u32)startOffset); |
| 216 | } |
| 217 | } |
| 218 | bool good() { return input.good(); } |
| 219 | ~BodyReader() override |
| 220 | { |