浏览代码

nodejs support for pak fs

Nicolas Cannasse 5 年之前
父节点
当前提交
ef76514b6b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hxd/fmt/pak/FileSystem.hx

+ 2 - 2
hxd/fmt/pak/FileSystem.hx

@@ -2,7 +2,7 @@ package hxd.fmt.pak;
 import hxd.fs.FileEntry;
 #if air3
 import hxd.impl.Air3File;
-#elseif sys
+#elseif (sys || nodejs)
 import sys.io.File;
 import sys.io.FileInput;
 #else
@@ -181,7 +181,7 @@ class FileSystem implements hxd.fs.FileSystem {
 	}
 
 	public function loadPak( file : String ) {
-		#if (air3 || sys)
+		#if (air3 || sys || nodejs)
 		addPak(File.read(file));
 		#else
 		throw "TODO";