mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Tweak path extension handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30833 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ad1eff6603
commit
38c9e91657
3 changed files with 26 additions and 0 deletions
|
@ -1693,6 +1693,14 @@ IF_NO_GC(
|
|||
{
|
||||
ext = nil;
|
||||
}
|
||||
if (ext == nil)
|
||||
{
|
||||
ext = [name pathExtension];
|
||||
if (ext != nil)
|
||||
{
|
||||
name = [name stringByDeletingPathExtension];
|
||||
}
|
||||
}
|
||||
|
||||
pathlist = [[self _bundleResourcePathsWithRootPath: rootPath
|
||||
subPath: subPath] objectEnumerator];
|
||||
|
@ -1855,6 +1863,14 @@ IF_NO_GC(
|
|||
NSString *result = nil;
|
||||
NSArray *array;
|
||||
|
||||
if ([ext length] == 0)
|
||||
{
|
||||
ext = [name pathExtension];
|
||||
if (ext != nil)
|
||||
{
|
||||
name = [name stringByDeletingPathExtension];
|
||||
}
|
||||
}
|
||||
array = [self pathsForResourcesOfType: ext
|
||||
inDirectory: subPath
|
||||
forLocalization: localizationName];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue