cocos2d-x 로 개발하고 있습니다. 헌데 파일 로딩이 잘 안되서 질문좀 드릴께여..

 

unsigned char* HelloWorld::loadData(char* path){
 unsigned char* tmpData = NULL;
 const char* fullpath = CCFileUtils::fullPathFromRelativePath((char*)"0_0.map");
 int size = 0;
 
 FILE* file = fopen(fullpath ,"r"); 
 if(file != NULL){

      .........
   }
 fclose(file);
 
 return tmpData;
}

 

파일 로딩하는걸 이렇게 만들었는데.. 폰에서 실행하니깐...파일을 못 불러오더라구여...

 

 

fullpath 를 출력해보니깐...  0_0.map  이것만 출력이 되던데...쩝..;;

 

 

안드로이드에서는 path 구하는게 틀리나여???