In Cocos2d-x, is there a way to get the full path to Directory? I have tried CCFileUtils::sharedFileUtils()->fullPathForFilename, it give correct path (both file and directory) on iOS but on Android, it’s seem wrong.
Here’s the code:
std::string hmmPath = CCFileUtils::sharedFileUtils()->fullPathForFilename("model/hmm/en_US/hub4wsj_sc_8k"); // This is a folder
std::string lmPath = CCFileUtils::sharedFileUtils()->fullPathForFilename("model/lm/en/turtle.DMP"); // And this is a file