| 116 | } |
| 117 | |
| 118 | pos_type seekpos(pos_type pos, std::ios_base::openmode mode) override |
| 119 | { |
| 120 | PHYSFS_seek(file, pos); |
| 121 | if (mode & std::ios_base::in) |
| 122 | { |
| 123 | setg(egptr(), egptr(), egptr()); |
| 124 | } |
| 125 | |
| 126 | if (mode & std::ios_base::out) |
| 127 | { |
| 128 | LogError("ios::out set on read-only IFile \"%s\"", this->systemPath); |
| 129 | LogAssert(0); |
| 130 | setp(buffer.get(), buffer.get()); |
| 131 | } |
| 132 | |
| 133 | return PHYSFS_tell(file); |
| 134 | } |
| 135 | |
| 136 | int_type overflow(int_type) override |
| 137 | { |