| 280 | } |
| 281 | |
| 282 | int64_t LoadFileFromAny(string_view srelfilename, string *dest, int64_t start, int64_t len) { |
| 283 | for (auto &dir : data_dirs) { |
| 284 | auto l = cur_loader(dir + srelfilename, dest, start, len); |
| 285 | if (l >= 0) return l; |
| 286 | } |
| 287 | return -1; |
| 288 | } |
| 289 | |
| 290 | // We don't generally load in ways that allow stdio text mode conversions, so this function |
| 291 | // emulates them at best effort. |