Skip to content

Commit

Permalink
Convert NSString to CString in CCLOG
Browse files Browse the repository at this point in the history
  • Loading branch information
l4u committed Mar 21, 2012
1 parent 642fa18 commit 5859370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos2dx/platform/ios/CCFileUtils_ios.mm
Expand Up @@ -83,7 +83,7 @@ of this software and associated documentation files (the "Software"), to deal
// check if path already has the suffix.
if( [name rangeOfString: suffix].location != NSNotFound ) {

CCLOG("cocos2d: WARNING Filename(%@) already has the suffix %@. Using it.", name, CC_RETINA_DISPLAY_FILENAME_SUFFIX);
CCLOG("cocos2d: WARNING Filename(%s) already has the suffix %s. Using it.", [name UTF8String], CC_RETINA_DISPLAY_FILENAME_SUFFIX);
return path;
}

Expand All @@ -106,7 +106,7 @@ of this software and associated documentation files (the "Software"), to deal
if( [fileManager fileExistsAtPath:retinaName] )
return retinaName;

CCLOG("cocos2d: CCFileUtils: Warning HD file not found: %@", [retinaName lastPathComponent] );
CCLOG("cocos2d: CCFileUtils: Warning HD file not found: %s", [[retinaName lastPathComponent] UTF8String]);
}

#endif // CC_IS_RETINA_DISPLAY_SUPPORTED
Expand Down

0 comments on commit 5859370

Please sign in to comment.