update release writepath

This commit is contained in:
chuanweizhang2013 2014-03-17 14:44:20 +08:00
parent 6c1e2ee181
commit 08a04e6408
1 changed files with 1 additions and 0 deletions

View File

@ -495,6 +495,7 @@ public:
ConsoleCustomCommand():_fileserver(nullptr) ConsoleCustomCommand():_fileserver(nullptr)
{ {
_writepath = FileUtils::getInstance()->getWritablePath(); _writepath = FileUtils::getInstance()->getWritablePath();
_writepath=replace_all(_writepath,"\\","/");
cocos2d::Console *_console = Director::getInstance()->getConsole(); cocos2d::Console *_console = Director::getInstance()->getConsole();
static struct Console::Command commands[] = { static struct Console::Command commands[] = {
{"shutdownapp","exit runtime app",std::bind(&ConsoleCustomCommand::onShutDownApp, this, std::placeholders::_1, std::placeholders::_2)}, {"shutdownapp","exit runtime app",std::bind(&ConsoleCustomCommand::onShutDownApp, this, std::placeholders::_1, std::placeholders::_2)},