+ return NO;
+}
+
+- (NSString *)pathOfLoadedBundleProvidingResource:(id)_resourceName
+ ofType:(NSString *)_type
+ resourceSelector:(NGBundleResourceSelector)_selector context:(void *)_context
+{
+ NSMapEnumerator menum;
+ NSString *path;
+ NSDictionary *bundleInfo;
+ NSArray *rnKeys;
+
+ rnKeys = ([_resourceName respondsToSelector:@selector(objectForKey:)])
+ ? [_resourceName allKeys]
+ : (NSArray *)nil;
+
+ menum = NSEnumerateMapTable(self->pathToBundleInfo);
+ while (NSNextMapEnumeratorPair(&menum, (void *)&path, (void *)&bundleInfo)) {
+ if (debugOn) {
+ NSLog(@"check loaded bundle for resource %@: %@", _resourceName,
+ path);
+ }
+
+ if ([self _doesBundleInfo:bundleInfo path:path
+ provideResource:_resourceName ofType:_type rnKeys:rnKeys
+ resourceSelector:_selector context:_context])
+ /* strip bundle-info.plist name */
+ return [path stringByDeletingLastPathComponent];
+ }
+
+ return nil;