Hello. I noticed that the VSTGUI 4.x editor allows to add bitmaps (PNG) and writes the full path of the file in the JSON uidesc file.
Here is the relevant portion of the uidesc file.
It seems there is a way to embed the filestream inside the JSON file.
That would be helpful and tidier, because it doesn’t seem to allow relative paths, unless I expect the base path to be somewhere else that it is. I thought that the base path is : %ProgramFiles%\Common Files\VST3, supposing that the vst3 plugin file resides here.
For your information, I don’t use bundles.
Could someone clarify this issue and also provide file embedding information ?
Help appreciated.
void UIDescription::setFilePath (UTF8StringPtr path)
{
impl->filePath = path;
impl->uidescFile.u.name = impl->filePath.data (); // make sure that xmlFile.u.name points to valid memory
}
it shows that uidesc is loaded from a resource, which is how it should be.
Then,
I suppose that when building release, -DVST_GUI_LIVE_EDITING=0 is implicit. and all resources must be inside the rc file for the plugin to load them.
On the other hand, when using -DVST_GUI_LIVE_EDITING=1 in debug, the WYSIWYG editor loads assets from path defined inside the uidesc (and also use the uidesc file path to write the modified uidesc file), Which is why everything appears ok. I will add background images as resources in the rc file and hopefully it will solve the issue.