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

Method hasTemplate

src/app/ModuleWidget.cpp:701–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701bool ModuleWidget::hasTemplate() {
702 std::string presetDir = model->getUserPresetDirectory();
703 std::string templatePath = system::join(presetDir, "template.vcvm");
704 return system::exists(templatePath);;
705}
706
707void ModuleWidget::clearTemplate() {
708 std::string presetDir = model->getUserPresetDirectory();

Callers 1

createContextMenuMethod · 0.80

Calls 3

existsFunction · 0.85
joinFunction · 0.50

Tested by

no test coverage detected