@@ -140,7 +140,7 @@ - (void)resetImagesWithProtoObject:(SVGAProtoMovieEntity *)protoObject {
140140 if (fileName != nil ) {
141141 NSString *filePath = [self .cacheDir stringByAppendingFormat: @" /%@ .png" , fileName];
142142 if (![[NSFileManager defaultManager ] fileExistsAtPath: filePath]) {
143- filePath = [self .cacheDir stringByAppendingFormat: @" /%@ " , fileName];
143+ filePath = [self .cacheDir stringByAppendingFormat: @" /%@ " , fileName];
144144 }
145145 if ([[NSFileManager defaultManager ] fileExistsAtPath: filePath]) {
146146 NSData *imageData = [NSData dataWithContentsOfFile: filePath];
@@ -154,11 +154,11 @@ - (void)resetImagesWithProtoObject:(SVGAProtoMovieEntity *)protoObject {
154154 }
155155 else if ([protoImages[key] isKindOfClass: [NSData class ]]) {
156156 NSData *fileTag = [protoImages[key] subdataWithRange: NSMakeRange (0 , 4 )];
157- if (![[fileTag description ] isEqualToString: @" <89504e47>" ]) {
157+ NSString *fileTagDes = [fileTag description ];
158+ if (![fileTagDes containsString: @" 89504e47" ]) {
158159 // mp3
159160 [audiosData setObject: protoImages[key] forKey: key];
160- }
161- else {
161+ } else {
162162 UIImage *image = [[UIImage alloc ] initWithData: protoImages[key] scale: 2.0 ];
163163 if (image != nil ) {
164164 [images setObject: image forKey: key];
@@ -181,7 +181,7 @@ - (void)resetSpritesWithProtoObject:(SVGAProtoMovieEntity *)protoObject {
181181 }];
182182 self.sprites = sprites;
183183}
184-
184+
185185- (void )resetAudiosWithProtoObject : (SVGAProtoMovieEntity *)protoObject {
186186 NSMutableArray <SVGAAudioEntity *> *audios = [[NSMutableArray alloc ] init ];
187187 NSArray *protoAudios = [protoObject.audiosArray copy ];
0 commit comments