Skip to content

Commit c572192

Browse files
committed
test
1 parent 4be68bf commit c572192

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

source/funkin/backend/assets/AssetsLibraryList.hx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ class AssetsLibraryList extends AssetLibrary {
8989

9090
if (library != null) {
9191
if (cacheSafeTime == null || time < cacheSafeTime) return library;
92-
else if (!shouldSkipLib(library, source)
93-
&& (type == null ? library.exists(id, @:privateAccess library.types.get(id)) : library.exists(id, type))
94-
) {
92+
else if (!shouldSkipLib(library, source) && library.exists(id, type)) {
9593
cacheTimePaths.set(id, time);
9694
return library;
9795
}
@@ -107,7 +105,7 @@ class AssetsLibraryList extends AssetLibrary {
107105

108106
for (library in libraries) {
109107
if (shouldSkipLib(library, source)) continue;
110-
if (type == null ? library.exists(id, @:privateAccess library.types.get(id)) : library.exists(id, type)) {
108+
if (library.exists(id, type)) {
111109
cacheLibraryPaths.set(id, library);
112110
return library;
113111
}
@@ -123,8 +121,6 @@ class AssetsLibraryList extends AssetLibrary {
123121
return existsSpecific(id, type, BOTH);
124122

125123
public function getSpecificPath(id:String, source:AssetSource = BOTH):Null<String> {
126-
// idk if this should be null ? cus theres no mentions of type here
127-
// but also adding one makes actions not work
128124
final library = getAssetPathLibrary(id, null, source);
129125
if (library != null) {
130126
final path = library.getPath(id);

0 commit comments

Comments
 (0)