浏览代码

implement EmbedFileSystem.dir

trethaller 3 年之前
父节点
当前提交
4050d68690
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      hxd/fs/EmbedFileSystem.hx

+ 4 - 0
hxd/fs/EmbedFileSystem.hx

@@ -244,7 +244,11 @@ class EmbedFileSystem #if !macro implements FileSystem #end {
 	}
 
 	public function dir( path : String ) : Array<FileEntry> {
+		#if macro
 		throw "Not Supported";
+		#else
+		return subFiles(path);
+		#end
 	}
 
 }