Dynamic FX, MultiOut and Regular VSTs from a single file (DLL)?

Just wondering if it would be possible to change juce_VST_Wrapper.cpp so I could use a dynamic check on the executable file to see if it has FX or MultiOut in the name and do the configurations at run-time, instead of having to compile 3 times for each plugin when I do an update. :wink: I can do the changes by hacking the mentioned file, but everytime I update the JUCE files I will have to do the changes again…

   #if JucePlugin_IsSynth
    vstEffect.flags |= Vst2::effFlagsIsSynth;
   #else
    if (processor->getTailLengthSeconds() == 0.0)
        vstEffect.flags |= Vst2::effFlagsNoSoundInStop;
   #endif

    

if JucePlugin_IsSynth
        vstEffect.flags |= Vst2::effFlagsIsSynth;
	   else if (processor->getTailLengthSeconds() == 0.0)
            vstEffect.flags |= Vst2::effFlagsNoSoundInStop;

#define JucePlugin_IsSynth (!File::getSpecialLocation(File::SpecialLocationType::currentExecutableFile).getFileNameWithoutExtension().contains(" FX "))

Cheers, WilliamK