MCPcopy Create free account
hub / github.com/VCVRack/Rack / ~Manager

Method ~Manager

src/patch.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46Manager::~Manager() {
47 // In safe mode, delete autosave dir.
48 if (settings::safeMode) {
49 clearAutosave();
50 }
51 else {
52 // Dispatch onSave to all Modules so they save their patch storage, etc.
53 APP->engine->prepareSave();
54 // Save autosave if not headless
55 if (!settings::headless) {
56 APP->patch->saveAutosave();
57 }
58 cleanAutosave();
59 }
60
61 delete internal;
62}
63
64
65void Manager::launch(std::string pathArg) {

Callers

nothing calls this directly

Calls 2

prepareSaveMethod · 0.80
saveAutosaveMethod · 0.80

Tested by

no test coverage detected