From 93e00a824275602145ecb03dec473e84d09e2b35 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Mon, 12 Oct 2020 00:10:28 -0500 Subject: [PATCH] clip ./ when doing pattern matching --- Templates/BaseGame/game/core/utility/scripts/module.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/BaseGame/game/core/utility/scripts/module.cs b/Templates/BaseGame/game/core/utility/scripts/module.cs index 713267525..b2b7393fe 100644 --- a/Templates/BaseGame/game/core/utility/scripts/module.cs +++ b/Templates/BaseGame/game/core/utility/scripts/module.cs @@ -112,7 +112,7 @@ function SimSet::registerDatablock(%scopeSet, %datablockFilePath, %isExclusive) { %check = DatablockFilesList.getKey(%i); //look for a substring match - %isMatch = strIsMatchExpr("*"@ %datablockFilePath,%check ); + %isMatch = strIsMatchExpr("*"@ strReplace(%datablockFilePath,"./","/"),%check ); if (%isMatch) { //check if we're already locked in @@ -213,7 +213,7 @@ function SimSet::queueExec(%scopeSet, %execFilePath, %isExclusive) { %check = ExecFilesList.getKey(%i); //look for a substring match - %isMatch = strIsMatchExpr("*"@ %execFilePath,%check ); + %isMatch = strIsMatchExpr("*"@ strReplace(%execFilePath,"./","/"),%check ); if (%isMatch) { //check if we're already locked in