Add logic to handle the "reent" bug

This commit is contained in:
Maschell
2026-04-17 23:45:49 +02:00
parent 66fd70e759
commit a22da69f2d
11 changed files with 247 additions and 34 deletions

View File

@@ -235,11 +235,9 @@ void ConfigUtils::displayMenu() {
std::vector<std::string> newInactivePluginsList;
for (const auto &cur : newActivePluginsList) {
if (!cur.isLoadAndLink()) {
auto &source = cur.getPluginData()->getSource();
if (source.starts_with(getPluginPath()) && source.ends_with(".wps")) {
std::size_t found = source.find_last_of("/\\");
std::string filename = source.substr(found + 1);
newInactivePluginsList.push_back(filename);
const auto &source = cur.getPluginData()->getSource();
if (const auto filenameOpt = getPluginFilename(source); filenameOpt) {
newInactivePluginsList.push_back(*filenameOpt);
}
}
}