MCPcopy Create free account
hub / github.com/LMMS/lmms / tryLoad

Method tryLoad

plugins/vst_base/VstPlugin.cpp:116–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116void VstPlugin::tryLoad( const QString &remoteVstPluginExecutable )
117{
118 init( remoteVstPluginExecutable, false, {m_embedMethod} );
119
120 waitForHostInfoGotten();
121 if( failed() )
122 {
123 return;
124 }
125
126 lock();
127
128 VstHostLanguages hlang = LanguageEnglish;
129 switch( QLocale::system().language() )
130 {
131 case QLocale::French: hlang = LanguageFrench; break;
132 case QLocale::German: hlang = LanguageGerman; break;
133 case QLocale::Italian: hlang = LanguageItalian; break;
134 case QLocale::Japanese: hlang = LanguageJapanese; break;
135 case QLocale::Korean: hlang = LanguageKorean; break;
136 case QLocale::Spanish: hlang = LanguageSpanish; break;
137 default: break;
138 }
139 sendMessage( message( IdVstSetLanguage ).addInt( hlang ) );
140
141
142 QString p = m_plugin;
143 if( QFileInfo( p ).dir().isRelative() )
144 {
145 p = ConfigManager::inst()->vstDir() + p;
146 }
147
148
149 sendMessage( message( IdVstLoadPlugin ).addString( QSTR_TO_STDSTR( p ) ) );
150
151 waitForInitDone();
152
153 unlock();
154}
155
156
157

Callers

nothing calls this directly

Calls 9

initFunction · 0.85
waitForHostInfoGottenFunction · 0.85
failedFunction · 0.85
waitForInitDoneFunction · 0.85
addStringMethod · 0.80
lockFunction · 0.50
messageFunction · 0.50
instFunction · 0.50
unlockFunction · 0.50

Tested by

no test coverage detected