MCPcopy Create free account
hub / github.com/EasyRPG/Player / vio_open

Function vio_open

src/decoder_fluidsynth.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static void* vio_open(const char* filename) {
34#else
35static 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
48static int vio_read(void *ptr, fluid_long_long_t count, void* userdata) {

Callers

nothing calls this directly

Calls 2

GameClass · 0.85
OpenInputStreamMethod · 0.80

Tested by

no test coverage detected