JS Sound.prototype.name() now always returns file names as documented under Mac OS X.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4019 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
549d873f0b
commit
7f39d6d436
@ -478,20 +478,7 @@ static void MixDown(float *inChan1, float *inChan2, float *outMix, size_t inCoun
|
|||||||
|
|
||||||
- (NSString *)name
|
- (NSString *)name
|
||||||
{
|
{
|
||||||
NSDictionary *comments;
|
return [[_name retain] autorelease];
|
||||||
NSString *result = nil;
|
|
||||||
|
|
||||||
comments = [self comments];
|
|
||||||
if (nil != comments)
|
|
||||||
{
|
|
||||||
result = [comments objectForKey:@"TITLE"];
|
|
||||||
if (nil == result) result = [comments objectForKey:@"NAME"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nil == result) result = [[_name retain] autorelease];
|
|
||||||
if (nil == result) result = [super name];
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user