MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SaveStatePopup

Method SaveStatePopup

Source/ModularSynth.cpp:2847–2861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2845}
2846
2847void ModularSynth::SaveStatePopup()
2848{
2849 File targetFile;
2850 String savestateDirPath = ofToDataPath("savestate/");
2851 String templateName = "";
2852 String date = ofGetTimestampString("%Y-%m-%d_%H-%M");
2853 if (IsCurrentSaveStateATemplate())
2854 templateName = File(mCurrentSaveStatePath).getFileNameWithoutExtension().toStdString() + "_";
2855
2856 targetFile = File(savestateDirPath + templateName + date + ".bsk");
2857
2858 FileChooser chooser("Save current state as...", targetFile, "*.bsk", true, false, GetFileChooserParent());
2859 if (chooser.browseForFileToSave(true))
2860 SaveState(chooser.getResult().getFullPathName().toStdString(), false);
2861}
2862
2863void ModularSynth::LoadStatePopup()
2864{

Callers 1

ButtonClickedMethod · 0.80

Calls 2

ofToDataPathFunction · 0.85
ofGetTimestampStringFunction · 0.85

Tested by

no test coverage detected