Explorar el Código

Merge pull request #360 from Azaezel/QQqq

clip ./ when doing pattern matching
Brian Roberts hace 5 años
padre
commit
0763ad9649
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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