mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4899 from samuele3hu/developNewUI
Fix:Resolve the error that CocoStudioSceneTest load resource in android
This commit is contained in:
commit
1f580d2cf0
|
@ -61,11 +61,11 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
searchPaths.insert(searchPaths.begin(), "cocosbuilderRes");
|
||||
if (screenSize.height > 320)
|
||||
{
|
||||
searchPaths.insert(searchPaths.begin(), "hd/scenetest");
|
||||
searchPaths.insert(searchPaths.begin(), "hd/scenetest/LoadSceneEdtiorFileTest");
|
||||
}
|
||||
else
|
||||
{
|
||||
searchPaths.insert(searchPaths.begin(), "scenetest");
|
||||
searchPaths.insert(searchPaths.begin(), "scenetest/LoadSceneEdtiorFileTest");
|
||||
}
|
||||
|
||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
|
||||
|
|
|
@ -16,7 +16,7 @@ function SceneEditorTestLayer.extend(target)
|
|||
end
|
||||
|
||||
function SceneEditorTestLayer:createGameScene()
|
||||
local node = ccs.SceneReader:getInstance():createNodeWithSceneFile("scenetest/FishJoy2.json")
|
||||
local node = ccs.SceneReader:getInstance():createNodeWithSceneFile("scenetest/LoadSceneEdtiorFileTest/FishJoy2.json")
|
||||
if nil == node then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue