I’m using: cocos2d-2.0-rc2-x-2.0.1, ubuntu
I am able to successfully build and run my Cocos2dx project on Android. However, when I run the game, it crashes because it is unable to open a file. The file it is looking for is called “first.ini”, and it is located on my hard drive in .ini
When I call build_native.sh, an folder is created that is linked to the folder.
Then in Eclipse, the folder appears in the Package Explorer window and I can see the full path: .ini
However, in my code, none of the following calls to fopen will work:
pFile = fopen( “ini/first.ini”, “r” );
pFile = fopen( “/ini/first.ini”, “r” );
pFile = fopen( “./ini/first.ini”, “r” );
pFile = fopen( “assets/ini/first.ini”, “r” );
pFile = fopen( “/assets/ini/first.ini”, “r” );
pFile = fopen( “./assets/ini/first.ini”, “r” );
pFile = fopen( “first.ini”, “r” );
I must be doing something dumb….can somebody point out the problem?
thanks in advance!