Some users have asked if I could add a swappable dark mode to my plugins. Sure, probably!
What I’d like to do, though, is to have a user who selects that dark mode for my suite select it for the entire suite. So if you do RMB/Dark-Mode on my chorus, my oscillator gets it too. So what I want to do is save a settings file which is 1:1 with plugin.json, not 1:1 with the modules therein.
Surge actually already has a mechanism to do this and I could just use it. That will create a ~/Documents/Surge directory and store settings there. So I have a solution but it doesn’t seem very rack-y
I read the SDK also. Seems settings.hpp is for the engine, to/from json on a module is the wrong arity since I don’t want something a a module level.
I could roll my own where I just dump some asset into
asset::user( "surge-settings.xml" ) (probably re-using the surge user prefs mechanism with the path changed to that location) but before I do that wanted to ask if there’s some obvious thing I’m missing about how to tackle this.