Skip to content

Commit

Permalink
Update AssetsLibraryList.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Dec 14, 2024
1 parent 920cb2e commit f63cc31
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions source/funkin/backend/assets/AssetsLibraryList.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package funkin.backend.assets;

import funkin.backend.assets.IModsAssetLibrary;
import lime.utils.AssetLibrary;
import lime.utils.AssetType;

class AssetsLibraryList extends AssetLibrary {
public var libraries:Array<AssetLibrary> = [];
Expand Down Expand Up @@ -162,6 +163,23 @@ class AssetsLibraryList extends AssetLibrary {
libraries.insert(0, lib);
return lib;
}

override public function list(type:String):Array<String>
{
var items = [];

for (library in libraries)
{
var libraryItems = library.list(type);

if (libraryItems != null)
{
items = items.concat(libraryItems);
}
}

return items;
}
}

enum abstract AssetSource(Null<Bool>) from Bool from Null<Bool> to Null<Bool> {
Expand Down

0 comments on commit f63cc31

Please sign in to comment.