Merge pull request #5783 from samuele3hu/develop_new_fix

[LuaTest] fix the error that AssetManager test case can’t find correct resource path
This commit is contained in:
James Chen 2014-03-14 10:12:14 +08:00
commit 4e6d56b93a
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function AssetManagerModule.newScene(backfunc)
helloLabel:setPosition(cc.p(winSize.width / 2, winSize.height - 40))
layer:addChild(helloLabel, 5)
local sprite = cc.Sprite:create("background.png")
local sprite = cc.Sprite:create("Images/background.png")
sprite:setAnchorPoint(cc.p(0.5, 0.5))
sprite:setPosition(cc.p(winSize.width / 2, winSize.height / 2))
layer:addChild(sprite, 0)

View File

@ -100,7 +100,8 @@ local function updateLayer()
local function enter(sender)
if not isUpdateItemClicked then
addSearchPath(pathToSave,true)
local realPath = pathToSave .. "/package"
addSearchPath(realPath,true)
end
assetsManagerModule = reloadModule("src/AssetsManagerTest/AssetsManagerModule")