Adding a new search path 'res' to TestJavascript since some resources are defined as hard code in ControlColourPicker::init().

bool ControlColourPicker::init()
{
    if (Control::init())
    {
        setTouchEnabled(true);
        // Cache the sprites
        SpriteFrameCache::getInstance()->addSpriteFramesWithFile("extensions/CCControlColourPickerSpriteSheet.plist");  // Hard code here

        // Create the sprite batch node
        SpriteBatchNode *spriteSheet  = SpriteBatchNode::create("extensions/CCControlColourPickerSpriteSheet.png"); // Hard code here
        addChild(spriteSheet);
This commit is contained in:
James Chen 2013-08-23 15:55:25 +08:00
parent 5897be62cf
commit 2a147ec34a
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->start();
FileUtils::getInstance()->addSearchPath("res");
auto pEngine = ScriptingCore::getInstance();
ScriptEngineManager::getInstance()->setScriptEngine(pEngine);
#ifdef JS_OBFUSCATED