From b6896f70ba983964efc27e617d642cc1fa3cd49f Mon Sep 17 00:00:00 2001 From: IDCs Date: Mon, 16 Sep 2024 15:48:22 +0100 Subject: [PATCH] fixed premature fileName reference comparison failure Filename comparisons when attempting to ascertain if a mod reference matches one of the installed mods would end prematurely without running the fileExpression comparisons. This would block Vortex from matching mods to their respective mods whenever the mod author changes the name of the mod. --- src/extensions/mod_management/util/testModReference.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/mod_management/util/testModReference.ts b/src/extensions/mod_management/util/testModReference.ts index 8690ac9ae..7ae5d45c4 100644 --- a/src/extensions/mod_management/util/testModReference.ts +++ b/src/extensions/mod_management/util/testModReference.ts @@ -211,10 +211,10 @@ function testRef(mod: IModLookupInfo, modId: string, ref: IModReference, if (ref.logicalFileName !== undefined) { if (mod.additionalLogicalFileNames !== undefined) { if (!mod.additionalLogicalFileNames.includes(ref.logicalFileName) - && (ref.logicalFileName !== mod.logicalFileName)) { + && (![mod.logicalFileName, mod.customFileName].includes(ref.logicalFileName) && ref.fileExpression === undefined)) { return false; } - } else if (ref.logicalFileName !== mod.logicalFileName) { + } else if (![mod.logicalFileName, mod.customFileName].includes(ref.logicalFileName) && ref.fileExpression === undefined) { return false; } }