Quellcode durchsuchen

clip ./ when doing pattern matching

AzaezelX vor 5 Jahren
Ursprung
Commit
93e00a8242
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Templates/BaseGame/game/core/utility/scripts/module.cs

+ 2 - 2
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