| 33 | static void* vio_open(const char* filename) { |
| 34 | #else |
| 35 | static void* vio_open(fluid_fileapi_t*, const char* filename) { |
| 36 | #endif |
| 37 | auto is = FileFinder::Game().OpenInputStream(filename); |
| 38 | if (!is) { |
| 39 | is = FileFinder::Root().OpenInputStream(filename); |
| 40 | if (!is) { |
| 41 | return nullptr; |
| 42 | } |
| 43 | } |
| 44 | return new Filesystem_Stream::InputStream { std::move(is) }; |
| 45 | } |
| 46 | |
| 47 | #ifdef FLUIDSYNTH_22_OR_NEWER |
| 48 | static int vio_read(void *ptr, fluid_long_long_t count, void* userdata) { |
nothing calls this directly
no test coverage detected