Skip to content

Commit 45d0c94

Browse files
committed
Reverse commit
1 parent a5e1fed commit 45d0c94

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cocos2d/Support/CCFileUtils.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,12 @@ -(NSString*) fullPathForFilename:(NSString*)filename contentScale:(CGFloat *)con
558558
if(!contentScale) contentScale = &_contentScale;
559559

560560
// fullpath? return it
561-
if ([filename isAbsolutePath]) {
562-
CCLOGWARN(@"cocos2d: WARNING fullPathForFilename:resolutionType: should not be called with absolute path. Instead call fullPathForFilenameIgnoringResolutions:");
563-
return filename;
564-
}
561+
// if ([filename isAbsolutePath]) {
562+
// CCLOGWARN(@"cocos2d: WARNING fullPathForFilename:resolutionType: should not be called with absolute path. Instead call fullPathForFilenameIgnoringResolutions:");
563+
// *contentScale = 1.0;
564+
// NSLog(@"filename:%@, fullPath:%@, contentScale:%f", filename, filename, *contentScale);
565+
// return filename;
566+
// }
565567

566568
// Already Cached ?
567569
CCCacheValue *value = [_fullPathCache objectForKey:filename];

0 commit comments

Comments
 (0)