| 238 | }; |
| 239 | |
| 240 | static void downloadRemotePatchFailed(const char* const filename) |
| 241 | { |
| 242 | d_stdout("downloadRemotePatchFailed %s", filename); |
| 243 | CardinalPluginContext* const context = static_cast<CardinalPluginContext*>(APP); |
| 244 | CardinalBaseUI* const ui = static_cast<CardinalBaseUI*>(context->ui); |
| 245 | |
| 246 | if (ui->psDialog != nullptr) |
| 247 | { |
| 248 | ui->psDialog->overlay->requestDelete(); |
| 249 | ui->psDialog = nullptr; |
| 250 | asyncDialog::create("Failed to fetch remote patch"); |
| 251 | } |
| 252 | |
| 253 | using namespace rack; |
| 254 | context->patch->templatePath = rack::system::join(asset::patchesPath(), "templates/main.vcv"); |
| 255 | context->patch->loadTemplate(); |
| 256 | context->scene->rackScroll->reset(); |
| 257 | } |
| 258 | |
| 259 | static void downloadRemotePatchSucceeded(const char* const filename) |
| 260 | { |
nothing calls this directly
no test coverage detected