| 72 | } |
| 73 | |
| 74 | bool VST3Utils::ParsePluginPath(const wxString& pluginPath, wxString* modulePath, |
| 75 | std::string* effectUIDString) |
| 76 | { |
| 77 | const auto sep = pluginPath.Find(';', true); |
| 78 | if(sep != wxNOT_FOUND && |
| 79 | //modulePath not empty |
| 80 | sep > 0 && |
| 81 | //effectUIDString not empty |
| 82 | static_cast<size_t>(sep) < pluginPath.Length() - 1) |
| 83 | { |
| 84 | if(modulePath != nullptr) |
| 85 | *modulePath = pluginPath.Left(sep); |
| 86 | if(effectUIDString != nullptr) |
| 87 | *effectUIDString = pluginPath.Mid(static_cast<size_t>(sep) + 1); |
| 88 | return true; |
| 89 | } |
| 90 | return false; |
| 91 | } |
| 92 | |
| 93 | wxString VST3Utils::ToWxString(const Steinberg::Vst::TChar* str) |
| 94 | { |