| 299 | |
| 300 | |
| 301 | std::string ModularSynth::GetUserPrefsPath() |
| 302 | { |
| 303 | std::string filename = "userprefs.json"; |
| 304 | for (int i = 0; i < JUCEApplication::getCommandLineParameterArray().size(); ++i) |
| 305 | { |
| 306 | juce::String specified = JUCEApplication::getCommandLineParameterArray()[i]; |
| 307 | if (specified.endsWith(".json")) |
| 308 | { |
| 309 | filename = specified.toStdString(); |
| 310 | if (!juce::File(ofToDataPath(filename)).existsAsFile()) |
| 311 | TheSynth->SetFatalError("couldn't find command-line-specified userprefs file at " + ofToDataPath(filename)); |
| 312 | break; |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | return ofToDataPath(filename); |
| 317 | } |
| 318 | |
| 319 | static int sFrameCount = 0; |
| 320 | void ModularSynth::Poll() |
no test coverage detected