diff --git a/templates/js-template-runtime/cocos-project-template.json b/templates/js-template-runtime/cocos-project-template.json index 469c463f6d..13c868c96c 100644 --- a/templates/js-template-runtime/cocos-project-template.json +++ b/templates/js-template-runtime/cocos-project-template.json @@ -149,7 +149,7 @@ "project_replace_project_name":{ "src_project_name":"HelloJavascript", "files":[ - "res/config.json", + "config.json", ".project", "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj", "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters", diff --git a/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/Runtime_android.cpp b/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/Runtime_android.cpp index d76b1022c7..3b9ec52123 100644 --- a/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/Runtime_android.cpp +++ b/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/Runtime_android.cpp @@ -6,24 +6,6 @@ using namespace std; using namespace cocos2d; -string getSDCardPath(); -string getProjSearchPath() -{ - extern std::string getPackageNameJNI(); - string searchPath = getSDCardPath(); - searchPath += "/"; - searchPath += getPackageNameJNI(); - return searchPath; -} - -vector getSearchPath() -{ - extern std::string getPackageNameJNI(); - vector searchPathArray; - searchPathArray.push_back(getProjSearchPath()); - return searchPathArray; -} - string getSDCardPath() { JniMethodInfo t; diff --git a/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/main.cpp b/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/main.cpp index e2dc5100e5..970f452306 100644 --- a/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/main.cpp +++ b/templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/javascript/main.cpp @@ -18,7 +18,7 @@ void cocos_android_app_init (JNIEnv* env, jobject thiz) { extern "C" { - bool Java_org_cocos2dx_lua_AppActivity_nativeIsLandScape(JNIEnv *env, jobject thisz) + bool Java_org_cocos2dx_javascript_AppActivity_nativeIsLandScape(JNIEnv *env, jobject thisz) { if (!ConfigParser::getInstance()->isInit()) {