mptwrap.cc.diff
/tmp/mptwrap.cc 2019-02-23 00:04:43.583901350 -0600 | ||
---|---|---|
28 | 28 |
#include <iterator> |
29 | 29 | |
30 | 30 |
#define WANT_VFS_STDIO_COMPAT |
31 |
#include <libopenmpt/libopenmpt_version.h> |
|
31 | 32 |
#include "mptwrap.h" |
32 | 33 | |
33 | 34 |
constexpr ComboItem MPTWrap::interpolators[]; |
... | ... | |
42 | 43 | |
43 | 44 |
bool MPTWrap::open(VFSFile &file) |
44 | 45 |
{ |
46 |
#if OPENMPT_API_VERSION_MAJOR <= 0 && OPENMPT_API_VERSION_MINOR < 3 |
|
47 |
auto m = openmpt_module_create(callbacks, &file, openmpt_log_func_silent, |
|
48 |
nullptr, nullptr); |
|
49 |
#else |
|
45 | 50 |
auto m = openmpt_module_create2(callbacks, &file, openmpt_log_func_silent, |
46 | 51 |
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr); |
52 |
#endif |
|
47 | 53 | |
48 | 54 |
if (m == nullptr) |
49 | 55 |
return false; |