-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zip file drop #4933
Comments
Linking to #3757. |
And #4814 |
OK for this one it is pretty simple line 4887 of SurgeGUIEditor.cpp will get called if you drop a .zip file onto surge. Right now it will do nothing. So what should it do? Well lets assume it is a zip file of mixed wavetables and patches and they ahve directories. So step one I would do is use https://docs.juce.com/master/classZipFile.html to at least print out everything in the zip file. (You will get a variable pointing to the path of the dropped file in SGE.cpp). Once you have that I would do something like
those paths are all fs::path members on surgesotrage which at this point of the code you can get with |
Hi, currently I'm on this and will create a PR draft in the next days. I just wanted to clarify the structure of the zip file.
That file we can unzip the content to Or is it also possible that the toplevel directories are there?
This file we would unzip to the And again thanks for your suggestion @baconpaul. |
I think if a user has a top level folder called "patches" we move it into the resulting "userDataPath" and the name is redundant. Assume no top-level directories and let folks clean up if it is otherwise. (We have to choose one or the other, and assuming there isn't a structure is much more flexible) |
The user can drop a zip file on surge, the content is then unzipped to the user data directory. Afterwards a refresh is done for the different content types. Addresses surge-synthesizer#4933
The user can drop a zip file on surge, the content is then unzipped to the user data directory. Afterwards a refresh is done for the different content types. Addresses #4933
Drop a zip on surge
And unpacks it in the right spot
Patches wavetables skins the lot
Juce:;zip file will help
The text was updated successfully, but these errors were encountered: