From 6fdbff537a2e7b6573cca7664dde4d9875ee5f30 Mon Sep 17 00:00:00 2001 From: Rohan Kuruvilla Date: Thu, 24 Jan 2013 23:31:49 -0800 Subject: [PATCH] Fixing run and reset buttons being enabled by default --- samples/Javascript/CocosPlayer/Classes/MainSceneHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Javascript/CocosPlayer/Classes/MainSceneHelper.cpp b/samples/Javascript/CocosPlayer/Classes/MainSceneHelper.cpp index 178b99f059..6384edcb11 100644 --- a/samples/Javascript/CocosPlayer/Classes/MainSceneHelper.cpp +++ b/samples/Javascript/CocosPlayer/Classes/MainSceneHelper.cpp @@ -77,7 +77,7 @@ void CCBHelper::setPairMessage(std::string str) { } bool CCBHelper::isMainJSPresent() { - std::string path = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath("main.js"); + std::string path = CCFileUtils::sharedFileUtils()->getAbsoluteFilenamePath(CCFileUtils::sharedFileUtils()->fullPathFromRelativePath("main.js")); CCLOG("PATH RETURNED: %s", path.c_str()); if(path == "") { return false;