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:
Tobias Doerffel
2008-09-06 22:02:45 +00:00
parent 54e63881b4
commit 61bdf0e089
2 changed files with 12 additions and 3 deletions

View File

@@ -75,7 +75,9 @@ inline plugin::descriptor::subPluginFeatures::key ladspaKeyToSubPluginKey(
const ladspa_key_t & _key )
{
plugin::descriptor::subPluginFeatures::key::attributeMap m;
m["file"] = _key.first;
QString file = _key.first;
m["file"] = file.remove( QRegExp( "\\.so$" ) ).
remove( QRegExp( "\\.dll$" ) );
m["plugin"] = _key.second;
return( plugin::descriptor::subPluginFeatures::key( _desc, _name,
m ) );