Explorar el Código

allow texconv on node

Nicolas Cannasse hace 4 años
padre
commit
d91a94bf53
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hxd/fs/Convert.hx

+ 1 - 1
hxd/fs/Convert.hx

@@ -239,7 +239,7 @@ class CompressIMG extends Convert {
 			var tmpPath = new haxe.io.Path(dstPath);
 			tmpPath.ext = "tmp."+new haxe.io.Path(srcPath).ext;
 			var tmpFile = tmpPath.toString();
-			#if sys
+			#if (sys || nodejs)
 			try sys.FileSystem.deleteFile(tmpFile) catch( e : Dynamic ) {};
 			try sys.FileSystem.deleteFile(dstPath) catch( e : Dynamic ) {};
 			sys.io.File.copy(srcPath, tmpFile);