瀏覽代碼

Fix handling of filenames starting with ./

Restores a line for removing double slashes that got caught in a comment block
AtomicWalrus 2 年之前
父節點
當前提交
50acaec19c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Templates/BaseGame/game/tools/projectImporter/scripts/projectImporter.tscript

+ 1 - 0
Templates/BaseGame/game/tools/projectImporter/scripts/projectImporter.tscript

@@ -863,6 +863,7 @@ function sanitizeFilename(%file)
       %targetFilename = %targetPath @ "/" @ %targetName @ %targetExt;
       %targetFilename = %targetPath @ "/" @ %targetName @ %targetExt;
    }
    }
    
    
+   %targetFilename = strReplace(%targetFilename, "//", "/");
    /*if(!isFile(%targetFilename))
    /*if(!isFile(%targetFilename))
    {
    {
       %bitmapFile = %targetPath @ "/" @ %targetName @ "_n" @ %targetExt;
       %bitmapFile = %targetPath @ "/" @ %targetName @ "_n" @ %targetExt;