| 2845 | } |
| 2846 | |
| 2847 | void 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 | |
| 2863 | void ModularSynth::LoadStatePopup() |
| 2864 | { |
no test coverage detected