* Source/NSBundle.m: Correct issue where *-gnustep.* is not

searched for when explicitly calling pathForResource:...


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27557 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-01-07 21:38:27 +00:00
parent 6337d986c6
commit e7454ec280
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-01-07 16:33-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSBundle.m: Correct issue where *-gnustep.* is not
searched for when explicitly calling pathForResource:...
2009-01-06 Richard Frith-Macdonald <rfm@gnu.org>
* configure:

View file

@ -1692,7 +1692,14 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
}
else
{
fullpath = nil;
NSString* platpath;
platpath = [path stringByAppendingPathComponent:
[NSString stringWithFormat: @"%@-gnustep.%@",
name, ext]];
if (bundle_file_readable(platpath))
fullpath = platpath;
else
fullpath = nil;
}
}
else