#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:32
 
Handles the Rack patch file state.
Definition context.hpp:23
 
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
 
std::string factoryTemplatePath
Path to factory template patch.
Definition patch.hpp:24
 
std::string templatePath
Path to user template patch.
Definition patch.hpp:22
 
void clearAutosave()
Delete and re-create autosave dir.
 
void loadAutosave()
Loads the patch from the autosave folder.
 
void loadPathDialog(std::string path)
 
void loadTemplate()
Loads the template patch file.
 
std::string path
The currently loaded patch file path.
Definition patch.hpp:18
 
void revertDialog()
Asks the user to reload the current patch.
 
void loadAction(std::string path)
Loads a patch, sets the current path, and updates the recent patches.
 
void cleanAutosave()
Clean up nonexistent module patch storage dirs in autosave dir.
 
bool checkUnavailableModulesJson(json_t *rootJ)
Checks if the JSON patch object contains modules not found in the loaded plugins, and launches a dial...
 
void loadTemplateDialog()
 
void pushRecentPath(std::string path)
 
void load(std::string path)
Loads a patch and nothing else.
 
PRIVATE void launch(std::string pathArg)
 
void clear()
Clears the patch.
 
void fromJson(json_t *rootJ)
 
void saveAsDialog(bool setPath=true)
 
void saveTemplateDialog()
 
void disconnectDialog()
Disconnects all cables.
 
Internal * internal
Definition patch.hpp:15
 
void save(std::string path)
Saves the patch and nothing else.
 
std::string autosavePath
Path to autosave dir.
Definition patch.hpp:20