save LADSPA effect filenames without extension and add correct one (depending on platform built for) when loading settings - fixes missing effects when loading songs in Windows which were made in Linux and vice versa
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1561 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -162,7 +162,14 @@ void ladspaSubPluginFeatures::listSubPluginKeys( plugin::descriptor * _desc,
|
||||
ladspa_key_t ladspaSubPluginFeatures::subPluginKeyToLadspaKey(
|
||||
const key * _key )
|
||||
{
|
||||
return( ladspa_key_t( _key->attributes["file"],
|
||||
_key->attributes["plugin"] ) );
|
||||
QString file = _key->attributes["file"].toLower();
|
||||
return( ladspa_key_t( file.remove( QRegExp( "\\.so$" ) ).
|
||||
remove( QRegExp( "\\.dll$" ) ) +
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
".dll"
|
||||
#else
|
||||
".so"
|
||||
#endif
|
||||
, _key->attributes["plugin"] ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user