MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / loadModelFromFile

Method loadModelFromFile

plugins/Cardinal/src/AIDA-X.cpp:357–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 void loadModelFromFile(const char* const filename, const bool showError)
358 {
359 try {
360 std::ifstream jsonStream(filename, std::ifstream::binary);
361 loadModelFromStream(jsonStream);
362 }
363 catch (const std::exception& e) {
364 d_stderr2("Unable to load aida-x file: %s\nError: %s", filename, e.what());
365
366 if (showError)
367 async_dialog_message((std::string("Unable to load aida-x file: ") + e.what()).c_str());
368 };
369 }
370
371 void loadModelFromStream(std::istream& jsonStream)
372 {

Callers 2

drawImGuiMethod · 0.80
onActionMethod · 0.80

Calls 2

c_strMethod · 0.80
async_dialog_messageFunction · 0.50

Tested by

no test coverage detected