Thanks for the reply! I tried renaming some of the maps in the maps folder to .mp3 like you suggested but it isn’t helping since I have problems even finding the maps folder, I haven’t gotten to the files’ contents yet. I had forgotten about the compression tho, might have given me problems later on.
So to clarify, I am not reading the files’ contents yet. Right now I’m only using opendir and readdir from dirent.h to open the directory “maps” from the resources and listing the file names of the json files I have in there. On iOS this works, opendir can find the “maps” folder when I do:
const char fullPath = CCFileUtils::fullPathFromRelativePath;
DIRdir = opendir(fullPath);
// checking errno here
but on android the same code results in DIR == NULL and opendir sets the errno to ENOENT which, looking at http://pubs.opengroup.org/onlinepubs/7908799/xsh/opendir.html, means that "A component of dirname does not name an existing directory or dirname is an empty string.".
Anyone know why this is happening?
Thanks for helping)