|
@@ -120,16 +120,7 @@ class ContextShared {
|
|
}
|
|
}
|
|
|
|
|
|
public function saveTexture( file : String, bytes : haxe.io.Bytes , dir : String, ext : String) {
|
|
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 ) {
|
|
function saveBakedFile( bytes : haxe.io.Bytes ) {
|