isPlugin, isHise, isStandalone?
-
In my preset browser (not the Hise factory one) I'm loading presets using the FileSystem
so in my code I have a switch to check if I'm in Hise or if it's a compiled plugin, and direct where to look for the presets
In Hise ("UserPresets)
In compiled plugin ("User Presets")working great!
but I compiled it as a standalone and it will not find any presets at all.
How can I check if it's compiled as a standalone, and where will it look for presets?
Engine.isPlugin()
This is inside Hise:
As compiled plugin inside Logic
As stand alone app
Any help will appreciated
-
@ulrik Can't you use
Engine.getUserPresetList()
? -
@d-healey said in isPlugin, isHise, isStandalone?:
@ulrik Can't you use
Engine.getUserPresetList()
?Sorry no, that is not possible in this
-
@ulrik Actually in my compiled project it uses
UserPresets
-
@d-healey said in isPlugin, isHise, isStandalone?:
@ulrik Actually in my compiled project it uses
UserPresets
Hmm, that is so strange, that is not working in my project.
I think it should use "UserPresets" since Engine.isPlugin() will show falseI'll investigate some more
-
@ulrik @d-healey Ok I have investigated some more and found out that the StandAlone app read and write presets to the same directory as the compiled plugin but, to the "UserPresets" folder, not the "User Presets" folder.
This is how it looks like in my Application Support folder for this instrument, sooo strange
This must be a bug right?
-
@ulrik that's strange, my standalone uses User Presets, but I haven't updated Hise in a few weeks.... what commit are you on?
-
@DanH I'm on the latest commit, I should say that I'm using the "FileSystem" to read and write the presets, I'm not using the constant FileSystem.UserPresets
-
@DanH said in isPlugin, isHise, isStandalone?:
@ulrik that's strange, my standalone uses User Presets, but I haven't updated Hise in a few weeks.... what commit are you on?
Is this using the built in preset system?
-
@ulrik yes, sorry I hadn't read the opening thread!
-
@DanH no problems, thanks anyway