I can’t check if file exists in android, in iOS works properly, but no in android. This is my code:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
CCLog(“IOS”);
CCLog(CCFileUtils::fullPathFromRelativePath(resourceName));
FILE fp = fopen,“r”);
if {
return true;
fclose;
} else {
return false;
}
#else
CCLog;
CCLog);
FILE fp1 = fopen(resourceName,“r”);
if( fp1 ) {
return true;
fclose(fp1);
} else {
return false;
}
#endif