diff --git a/templates/lua-template-default/cocos-project-template.json b/templates/lua-template-default/cocos-project-template.json index 787ae3539d..f92875e23c 100644 --- a/templates/lua-template-default/cocos-project-template.json +++ b/templates/lua-template-default/cocos-project-template.json @@ -246,6 +246,13 @@ "files": [ "frameworks/runtime-src/proj.ios_mac/ios/Info.plist" ] - } + }, + "modify_files":[ + { + "file_path": "frameworks/runtime-src/Classes/ide-support/CodeIDESupport.h", + "pattern": "#define CC_CODE_IDE_DEBUG_SUPPORT 1", + "replace_string": "#define CC_CODE_IDE_DEBUG_SUPPORT 0" + } + ] } } diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.android/jni/hellolua/main.cpp b/templates/lua-template-default/frameworks/runtime-src/proj.android/jni/hellolua/main.cpp index 60e5e6cc52..0b8009be60 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.android/jni/hellolua/main.cpp +++ b/templates/lua-template-default/frameworks/runtime-src/proj.android/jni/hellolua/main.cpp @@ -4,6 +4,7 @@ #include #include #include "ide-support/SimpleConfigParser.h" +#include "ide-support/CodeIDESupport.h" #define LOG_TAG "main" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) @@ -24,7 +25,7 @@ extern "C" bool Java_org_cocos2dx_lua_AppActivity_nativeIsDebug(JNIEnv *env, jobject thisz) { -#if (COCOS2D_DEBUG > 0) +#if (COCOS2D_DEBUG > 0) && (CC_CODE_IDE_DEBUG_SUPPORT > 0) return true; #else return false;