We don't generally load in ways that allow stdio text mode conversions, so this function emulates them at best effort.
| 341 | // We don't generally load in ways that allow stdio text mode conversions, so this function |
| 342 | // emulates them at best effort. |
| 343 | void TextModeConvert(string &s, bool binary) { |
| 344 | if (binary) return; |
| 345 | #ifdef _WIN32 |
| 346 | s.erase(remove(s.begin(), s.end(), '\r'), s.end()); |
| 347 | #endif |
| 348 | } |
| 349 | |
| 350 | int64_t LoadFile(string_view relfilename, string *dest, int64_t start, int64_t len, bool binary) { |
| 351 | assert(cur_loader); |