mirror of https://github.com/axmolengine/axmol.git
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:
parent
5897be62cf
commit
2a147ec34a
|
@ -55,6 +55,8 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
|
||||
sc->start();
|
||||
|
||||
FileUtils::getInstance()->addSearchPath("res");
|
||||
|
||||
auto pEngine = ScriptingCore::getInstance();
|
||||
ScriptEngineManager::getInstance()->setScriptEngine(pEngine);
|
||||
#ifdef JS_OBFUSCATED
|
||||
|
|
Loading…
Reference in New Issue