mainBundle works now with GSWeb (.gswa and .woa wrapper names)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13669 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
dwetzel 2002-05-21 12:53:46 +00:00
parent 179c45422a
commit be5c099357

View file

@ -619,17 +619,20 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
non-yet-installed tool. */
isApplication = NO;
}
if (isApplication == YES)
{
s = [path lastPathComponent];
if (([s hasSuffix: @".app"] == NO)
&& ([s hasSuffix: @".debug"] == NO)
&& ([s hasSuffix: @".profile"] == NO))
{
isApplication = NO;
}
}
{
s = [path lastPathComponent];
if ((([s hasSuffix: @".app"] == NO)
&& ([s hasSuffix: @".debug"] == NO)
&& ([s hasSuffix: @".profile"] == NO))
// GNUstep Web
&& (([s hasSuffix: @".gswa"] == NO) && ([s hasSuffix: @".woa"] == NO)))
{
isApplication = NO;
}
}
if (isApplication == NO)
{