We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a773af1 commit 12fb703Copy full SHA for 12fb703
cocos2d/CCSpriteFrameCache.m
@@ -449,6 +449,12 @@ -(CCSpriteFrame*) spriteFrameByName:(NSString*)name
449
450
if (!frame)
451
{
452
+
453
+ // Check fileLookup.plist
454
+ NSString *newfilename = [[CCFileUtils sharedFileUtils].filenameLookup objectForKey:name];
455
+ if(newfilename)
456
+ name = newfilename;
457
458
// Try finding the frame in one of the registered sprite sheets
459
NSString* spriteFrameFile = [_spriteFrameFileLookup objectForKey:name];
460
if (spriteFrameFile) [self addSpriteFramesWithFile:spriteFrameFile];
0 commit comments