js文件优先读取外部存储
This commit is contained in:
parent
dd4f6a1762
commit
cb54fd021e
@ -205,7 +205,8 @@ public class Cocos2dxHelper {
|
|||||||
final ApplicationInfo applicationInfo = activity.getApplicationInfo();
|
final ApplicationInfo applicationInfo = activity.getApplicationInfo();
|
||||||
|
|
||||||
Cocos2dxHelper.sPackageName = applicationInfo.packageName;
|
Cocos2dxHelper.sPackageName = applicationInfo.packageName;
|
||||||
Cocos2dxHelper.sFileDirectory = activity.getFilesDir().getAbsolutePath();
|
Cocos2dxHelper.sFileDirectory = activity.getExternalFilesDir("luaframework").getAbsolutePath();
|
||||||
|
// Cocos2dxHelper.sFileDirectory = activity.getFilesDir().getAbsolutePath();
|
||||||
|
|
||||||
Cocos2dxHelper.nativeSetApkPath(Cocos2dxHelper.getAssetsPath());
|
Cocos2dxHelper.nativeSetApkPath(Cocos2dxHelper.getAssetsPath());
|
||||||
|
|
||||||
|
@ -232,7 +232,6 @@ void jsb_init_file_operation_delegate()
|
|||||||
se::ScriptEngine::getInstance()->setFileOperationDelegate(delegate);
|
se::ScriptEngine::getInstance()->setFileOperationDelegate(delegate);
|
||||||
}
|
}
|
||||||
std::string path = FileUtils::getInstance()->getWritablePath();
|
std::string path = FileUtils::getInstance()->getWritablePath();
|
||||||
path += "luaframework/";
|
|
||||||
std::vector<std::string> searchPaths;
|
std::vector<std::string> searchPaths;
|
||||||
searchPaths.push_back(path);
|
searchPaths.push_back(path);
|
||||||
searchPaths.push_back("");
|
searchPaths.push_back("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user