MCPcopy Create free account
hub / github.com/VCVRack/Rack / saveTemplate

Method saveTemplate

src/app/ModuleWidget.cpp:685–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685void ModuleWidget::saveTemplate() {
686 std::string presetDir = model->getUserPresetDirectory();
687 system::createDirectories(presetDir);
688 std::string templatePath = system::join(presetDir, "template.vcvm");
689 save(templatePath);
690}
691
692void ModuleWidget::saveTemplateDialog() {
693 if (hasTemplate()) {

Callers

nothing calls this directly

Calls 4

createDirectoriesFunction · 0.85
saveFunction · 0.85
joinFunction · 0.50

Tested by

no test coverage detected