@@ -840,6 +840,7 @@ public: | |||||
fFileAPI = new CarlaJsusFxFileAPI; | fFileAPI = new CarlaJsusFxFileAPI; | ||||
fEffect = new CarlaJsusFx(*fPathLibrary); | fEffect = new CarlaJsusFx(*fPathLibrary); | ||||
fEffect->fileAPI = fFileAPI; | fEffect->fileAPI = fFileAPI; | ||||
fFileAPI->init(fEffect->m_vm); | |||||
fFilename.assign(filename); | fFilename.assign(filename); | ||||
// --------------------------------------------------------------- | // --------------------------------------------------------------- | ||||
@@ -1673,6 +1673,16 @@ static void do_jsfx_check(const char* const filename, bool doInit) | |||||
uint hints = 0; | uint hints = 0; | ||||
/// | |||||
JsusFxFileAPI_Basic fileAPI; | |||||
effect.fileAPI = &fileAPI; | |||||
fileAPI.init(effect.m_vm); | |||||
JsusFxGfx gfxAPI; | |||||
effect.gfx = &gfxAPI; | |||||
gfxAPI.init(effect.m_vm); | |||||
/// | |||||
if (doInit) | if (doInit) | ||||
{ | { | ||||
int compileFlags = | int compileFlags = | ||||
@@ -30,6 +30,7 @@ | |||||
#pragma GCC diagnostic ignored "-Wignored-attributes" | #pragma GCC diagnostic ignored "-Wignored-attributes" | ||||
#include "jsusfx.h" | #include "jsusfx.h" | ||||
#include "jsusfx_file.h" | #include "jsusfx_file.h" | ||||
#include "jsusfx_gfx.h" | |||||
#include "jsusfx_serialize.h" | #include "jsusfx_serialize.h" | ||||
#pragma GCC diagnostic pop | #pragma GCC diagnostic pop | ||||