Browse Source

added cross platform support to unzip

Nicolas Cannasse 11 years ago
parent
commit
befda035c2
1 changed files with 1 additions and 5 deletions
  1. 1 5
      std/haxe/zip/Reader.hx

+ 1 - 5
std/haxe/zip/Reader.hx

@@ -195,8 +195,7 @@ class Reader {
 	public static function unzip( f : Entry ) {
 		if( !f.compressed )
 			return f.data;
-		#if neko
-		var c = new neko.zip.Uncompress(-15);
+		var c = new haxe.zip.Uncompress(-15);
 		var s = haxe.io.Bytes.alloc(f.fileSize);
 		var r = c.execute(f.data,0,s,0);
 		c.close();
@@ -205,9 +204,6 @@ class Reader {
 		f.compressed = false;
 		f.dataSize = f.fileSize;
 		f.data = s;
-		#else
-		throw "No uncompress support";
-		#end
 		return f.data;
 	}