I'm porting this game to Android, and it should read all file names in a directory and run all *.lua files.
Unfortunately I'm having a ton of problems reading all files in a directory on Android.
If I load a texture like so
Code: Select all
IGUIImage* startIMG = Game::guienv->addImage(rect<s32>(0,0,640,480),0,0);
startIMG->setImage(Game::driver->getTexture("media/blank.png"));
However if I use the file system and do
Code: Select all
bool check = device->getFileSystem()->existFile("media/blank.png");
I've also searched around on how to read all files with POSIX or on UNIX systems. Nothing seems to work.
I'm unsure why this problem is occurring, so I figured maybe it's my file permissions? In the Android Manifest I'm using permissions for
Any suggestions?READ_EXTERNAL_STORAGE and READ_INTERNAL_STORAGE