From a6cd18d05d2b89135595c2e002568552d9f4739a Mon Sep 17 00:00:00 2001 From: chuanweizhang2013 Date: Wed, 2 Apr 2014 13:47:09 +0800 Subject: [PATCH] cmd to request --- .../frameworks/runtime-src/Classes/Runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp b/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp index 1c4017604a..e1984c19d7 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp +++ b/templates/lua-template-runtime/frameworks/runtime-src/Classes/Runtime.cpp @@ -593,7 +593,7 @@ public: { cocos2d::Console *_console = Director::getInstance()->getConsole(); static struct Console::Command commands[] = { - {"sendcmd","send command to runtime.Args[json format]",std::bind(&ConsoleCustomCommand::onSendCommand, this, std::placeholders::_1, std::placeholders::_2)}, + {"sendrequest","send command to runtime.Args[json format]",std::bind(&ConsoleCustomCommand::onSendCommand, this, std::placeholders::_1, std::placeholders::_2)}, }; for (int i=0;i< sizeof(commands)/sizeof(Console::Command);i++) { _console->addCommand(commands[i]);