mirror of https://github.com/axmolengine/axmol.git
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:
commit
4e6d56b93a
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue