We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53d2f05 commit 9660f57Copy full SHA for 9660f57
modules/ModManager.cpp
@@ -410,8 +410,18 @@ void ModManager::DeactivateButton_isPressed() {
410
for (std::string fileline : UniqueList) {
411
conflictfilecount = 0;
412
for (int i = 0; i < FileList.size(); i++) {
413
- if (FileList[i].contains(fileline))
+
414
+ std::size_t comma_pos = fileline.find(',');
415
+ std::string relative_string;
416
+ if (comma_pos != std::string::npos) {
417
+ relative_string = fileline.substr(0, comma_pos);
418
+ } else {
419
+ relative_string = fileline;
420
+ }
421
422
+ if (FileList[i].contains(relative_string))
423
conflictfilecount = conflictfilecount + 1;
424
425
if (conflictfilecount > 1) {
426
hasconflict = true;
427
break;
0 commit comments