some fixes
This commit is contained in:
@@ -147,8 +147,20 @@ class ZipFolderLibrary extends AssetLibrary implements ModsAssetLibrary {
|
||||
}
|
||||
|
||||
public function getFiles(folder:String):Array<String> {
|
||||
// TODO
|
||||
return [];
|
||||
var content:Array<String> = [];
|
||||
|
||||
if (!folder.endsWith("/")) folder = folder + "/";
|
||||
if (!__parseAsset(folder)) return [];
|
||||
|
||||
@:privateAccess
|
||||
for(k=>e in assets) {
|
||||
if (k.toLowerCase().startsWith(_parsedAsset)) {
|
||||
var fileName = k.substr(_parsedAsset.length);
|
||||
if (!fileName.contains("/"))
|
||||
content.push(fileName);
|
||||
}
|
||||
}
|
||||
return content;
|
||||
}
|
||||
#end
|
||||
}
|
||||
Reference in New Issue
Block a user