2
0
Эх сурвалжийг харах

moved saveTexture to hide

ncannasse 7 жил өмнө
parent
commit
5355a3fffe

+ 1 - 10
hxd/prefab/ContextShared.hx

@@ -120,16 +120,7 @@ class ContextShared {
 	}
 
 	public function saveTexture( file : String, bytes : haxe.io.Bytes , dir : String, ext : String) {
-		var path = new haxe.io.Path("");
-		path.dir = dir + "/";
-		path.file = file;
-		path.ext = ext;
-
-		if(!sys.FileSystem.isDirectory( hide.Ide.inst.getPath(dir)))
-			sys.FileSystem.createDirectory( hide.Ide.inst.getPath(dir));
-
-		var file = hide.Ide.inst.getPath(path.toString());
-		sys.io.File.saveBytes(file, bytes);
+		throw "Don't know how to save texture";
 	}
 
 	function saveBakedFile( bytes : haxe.io.Bytes ) {