I'm working on Cocos2dx project and facing with a problem! In cocos2dx, i can change data in assets folder to another path and my app can load texture and sound successfully.
This is my code in CCFileUtilsAndroid.cpp
. It's work ok
bool CCFileUtilsAndroid::init()
{
m_strDefaultResRootPath = "/mnt/sdcard/Testing/";
return CCFileUtils::init();
}
But I want to read directly obb file without unzip it. I had to set this line into Cocos2dxHelper.java at init function.
Cocos2dxHelper.nativeSetApkPath(Environment.getExternalStorageDirectory()+"/Android/obb/com.example.test/Testing.obb");
But it's fail to load anything in obb file.
I read some solution in stackoverflow same as: Android OBB/ZIP loading (cocos2dx)
But i can't find solution for me. Please help me for this issue! Hope your reply! Thanks you very much