Explorar o código

clip ./ when doing pattern matching

AzaezelX %!s(int64=5) %!d(string=hai) anos
pai
achega
93e00a8242
Modificáronse 1 ficheiros con 2 adicións e 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);
         %check = DatablockFilesList.getKey(%i);
         //look for a substring match
         //look for a substring match
-        %isMatch = strIsMatchExpr("*"@ %datablockFilePath,%check );
+        %isMatch = strIsMatchExpr("*"@ strReplace(%datablockFilePath,"./","/"),%check );
         if (%isMatch)
         if (%isMatch)
         {
         {
             //check if we're already locked in
             //check if we're already locked in
@@ -213,7 +213,7 @@ function SimSet::queueExec(%scopeSet, %execFilePath, %isExclusive)
    {
    {
         %check = ExecFilesList.getKey(%i);
         %check = ExecFilesList.getKey(%i);
         //look for a substring match
         //look for a substring match
-        %isMatch = strIsMatchExpr("*"@ %execFilePath,%check );
+        %isMatch = strIsMatchExpr("*"@ strReplace(%execFilePath,"./","/"),%check );
         if (%isMatch)
         if (%isMatch)
         {
         {
             //check if we're already locked in
             //check if we're already locked in