mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
* 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:
parent
6337d986c6
commit
e7454ec280
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue