mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
Temporarily comment out some code with #if 0/1 so it will compile.
Get Adam Fedor or someone to fix it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2331 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1c0a89707d
commit
6b264197fd
2 changed files with 19 additions and 3 deletions
|
@ -274,6 +274,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
||||||
return [[[NSBundle alloc] initWithPath: path] autorelease];
|
return [[[NSBundle alloc] initWithPath: path] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
+ (NSString *) pathForResource: (NSString *)name
|
+ (NSString *) pathForResource: (NSString *)name
|
||||||
ofType: (NSString *)ext
|
ofType: (NSString *)ext
|
||||||
inDirectory: (NSString *)bundlePath
|
inDirectory: (NSString *)bundlePath
|
||||||
|
@ -283,16 +284,22 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
||||||
inDirectory:bundlePath
|
inDirectory:bundlePath
|
||||||
withVersion:0];
|
withVersion:0];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
+ (NSString *) pathForResource: (NSString *)name
|
+ (NSString *) pathForResource: (NSString *)name
|
||||||
ofType: (NSString *)ext
|
ofType: (NSString *)ext
|
||||||
inDirectory: (NSString *)bundlePath
|
inDirectory: (NSString *)bundlePath
|
||||||
withVersion: (int)version
|
withVersion: (int)version
|
||||||
{
|
{
|
||||||
NSBundle* bundle = [NSBundle bundleWithPath:bundlePath];
|
#if 1
|
||||||
|
[self notImplemented:_cmd];
|
||||||
|
return nil;
|
||||||
|
#else
|
||||||
|
NSBundle* bundle = [NSBundle bundleWithPath:bundlePath];
|
||||||
|
|
||||||
[bundle setBundleVersion:version];
|
[bundle setBundleVersion:version];
|
||||||
return [bundle pathForResource:name ofType:ext inDirectory:nil];
|
return [bundle pathForResource:name ofType:ext inDirectory:nil];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithPath:(NSString *)path;
|
- initWithPath:(NSString *)path;
|
||||||
|
@ -523,9 +530,14 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
||||||
- (NSString *) pathForResource: (NSString *)name
|
- (NSString *) pathForResource: (NSString *)name
|
||||||
ofType: (NSString *)ext;
|
ofType: (NSString *)ext;
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
[self notImplemented: _cmd];
|
||||||
|
return nil;
|
||||||
|
#else
|
||||||
return [self pathForResource: name
|
return [self pathForResource: name
|
||||||
ofType: ext
|
ofType: ext
|
||||||
inDirectory: nil];
|
inDirectory: nil];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSString *) pathForResource: (NSString *)name
|
+ (NSString *) pathForResource: (NSString *)name
|
||||||
|
|
|
@ -79,6 +79,9 @@ static NSLock* cache_lock = nil;
|
||||||
if (cache_set[number] == nil)
|
if (cache_set[number] == nil)
|
||||||
{
|
{
|
||||||
NS_DURING
|
NS_DURING
|
||||||
|
#if 1
|
||||||
|
path = nil;
|
||||||
|
#else
|
||||||
path = [gstep_base_bundle pathForResource:setname
|
path = [gstep_base_bundle pathForResource:setname
|
||||||
ofType:@"dat"
|
ofType:@"dat"
|
||||||
inDirectory:NSCharacterSet_PATH];
|
inDirectory:NSCharacterSet_PATH];
|
||||||
|
@ -89,6 +92,7 @@ static NSLock* cache_lock = nil;
|
||||||
ofType:@"dat"
|
ofType:@"dat"
|
||||||
inDirectory:@"../NSCharacterSets"];
|
inDirectory:@"../NSCharacterSets"];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (path == nil || [path length] == 0)
|
if (path == nil || [path length] == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue