diff --git a/template/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp b/template/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp index 6d9aa79755..5d1d7d7350 100644 --- a/template/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp +++ b/template/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp @@ -51,7 +51,7 @@ bool AppDelegate::applicationDidFinishLaunching() sc->addRegisterCallback(JSB_register_opengl); sc->addRegisterCallback(jsb_register_chipmunk); - StartRuntime(); + startRuntime(); return true; } diff --git a/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp b/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp index 74963c7751..57cc1673c4 100644 --- a/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp +++ b/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp @@ -231,7 +231,7 @@ void startScript() ScriptingCore::getInstance()->runScript("cocos2d-jsb.js"); } -void ReloadScript() +void reloadScript() { } @@ -285,7 +285,7 @@ private: string _jsSearchPath; }; -void StartRuntime() +void startRuntime() { vector searchPathArray; searchPathArray = getSearchPath(); diff --git a/template/multi-platform-js-runtime/framework/Classes/Runtime.h b/template/multi-platform-js-runtime/framework/Classes/Runtime.h index dd074c4865..5cfb0a38e4 100644 --- a/template/multi-platform-js-runtime/framework/Classes/Runtime.h +++ b/template/multi-platform-js-runtime/framework/Classes/Runtime.h @@ -31,9 +31,9 @@ using namespace std; #define _MAX_PATH_ 512 -void StartRuntime(); +void startRuntime(); -void ReloadScript(); +void reloadScript(); // SimulatorConfig typedef struct _SimulatorScreenSize { diff --git a/template/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm b/template/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm index 0a5aba24a3..7db1a7cb81 100644 --- a/template/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm +++ b/template/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm @@ -243,7 +243,7 @@ using namespace cocos2d; - (IBAction) onReloadScript:(id)sender { - ReloadScript(); + reloadScript(); } diff --git a/template/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp b/template/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp index aa1851e52a..f0f8bc9070 100644 --- a/template/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp +++ b/template/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp @@ -173,7 +173,7 @@ LRESULT CALLBACK SNewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar break; case ID_CONTROL_RELOAD: - ReloadScript(); + reloadScript(); break; case ID_HELP_ABOUT: