From 0bcdf898bfb46eb46fbd5a9a2f67b4fb3ea77a56 Mon Sep 17 00:00:00 2001 From: Bin Zhang Date: Sat, 4 Jul 2015 10:17:40 +0800 Subject: [PATCH] Solve the error in simulator. --- .../runtime-src/Classes/js_module_register.h | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/simulator/frameworks/runtime-src/Classes/js_module_register.h b/tools/simulator/frameworks/runtime-src/Classes/js_module_register.h index 1eb7d05e35..243552a155 100644 --- a/tools/simulator/frameworks/runtime-src/Classes/js_module_register.h +++ b/tools/simulator/frameworks/runtime-src/Classes/js_module_register.h @@ -27,12 +27,12 @@ #include "jsb_cocos2dx_navmesh_auto.hpp" #include "navmesh/jsb_cocos2dx_navmesh_manual.h" -#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) -#include "experimental/jsb_cocos2dx_experimental_video_auto.hpp" -#include "experimental/jsb_cocos2dx_experimental_video_manual.h" -#include "experimental/jsb_cocos2dx_experimental_webView_auto.hpp" -#include "experimental/jsb_cocos2dx_experimental_webView_manual.h" -#endif +// #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) +// #include "experimental/jsb_cocos2dx_experimental_video_auto.hpp" +// #include "experimental/jsb_cocos2dx_experimental_video_manual.h" +// #include "experimental/jsb_cocos2dx_experimental_webView_auto.hpp" +// #include "experimental/jsb_cocos2dx_experimental_webView_manual.h" +// #endif #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) #include "platform/android/CCJavascriptJavaBridge.h" @@ -98,12 +98,12 @@ int js_module_register() sc->addRegisterCallback(register_all_cocos2dx_navmesh_manual); #endif -#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) - sc->addRegisterCallback(register_all_cocos2dx_experimental_video); - sc->addRegisterCallback(register_all_cocos2dx_experimental_video_manual); - sc->addRegisterCallback(register_all_cocos2dx_experimental_webView); - sc->addRegisterCallback(register_all_cocos2dx_experimental_webView_manual); -#endif +// #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) +// sc->addRegisterCallback(register_all_cocos2dx_experimental_video); +// sc->addRegisterCallback(register_all_cocos2dx_experimental_video_manual); +// sc->addRegisterCallback(register_all_cocos2dx_experimental_webView); +// sc->addRegisterCallback(register_all_cocos2dx_experimental_webView_manual); +// #endif #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) sc->addRegisterCallback(JavascriptJavaBridge::_js_register);