surge-synthesizer / surge

Synthesizer plug-in (previously released as Vember Audio Surge)
https://surge-synthesizer.github.io/
GNU General Public License v3.0
3.01k stars 385 forks source link

Adding failsafes for OSC saving to user patchdir #7616

Closed gitsmol closed 2 months ago

gitsmol commented 2 months ago

I wrongly assumed that synth->savePatchtoPath checks path validity etc. It does not. Added a basic failsafe to the save_user OSC address that checks if path exists, tries to create it if not. If that fails we've tried our best and return an error.

gitsmol commented 2 months ago

Whoops, I ran into a clang problem...