Skip to content

Commit

Permalink
Merge pull request #11 from chuanweizhang2013/master
Browse files Browse the repository at this point in the history
fix android crash
  • Loading branch information
cocoscodeide committed May 15, 2014
2 parents 6a69b2d + 8458287 commit c1b4020
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion templates/js-template-runtime/cocos-project-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> getSearchPath()
{
extern std::string getPackageNameJNI();
vector<string> searchPathArray;
searchPathArray.push_back(getProjSearchPath());
return searchPathArray;
}

string getSDCardPath()
{
JniMethodInfo t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit c1b4020

Please sign in to comment.