mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Merge pull request #143 from triplef/android-assets-directory-improvements-fix
Fix Android assets support for bundle directories
This commit is contained in:
commit
a5b330d4f8
1 changed files with 3 additions and 1 deletions
|
@ -2237,7 +2237,9 @@ IF_NO_GC(
|
|||
subPath: subPath localization: nil] objectEnumerator];
|
||||
while ((path = [pathlist nextObject]) != nil)
|
||||
{
|
||||
if (YES == [mgr isReadableFileAtPath: path])
|
||||
NSString *lastPathComponent = [path lastPathComponent];
|
||||
if ([lastPathComponent isEqualToString:file]
|
||||
&& [mgr isReadableFileAtPath: path])
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue