Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

Whats wrong with searchPath?

$
0
0

@eydamson wrote:

Hi i am doing an app update by using AsstesManager...
the app already downloads all the resources from the server then i restart the game...
i set the search path like this

if(cc.sys)
 {
    var path = cc.sys.localStorage.getItem("path");
    if (path)
    {
        // path is "[/data/data/org.cocos2dx.mygame/files/]"
        path = path.substring(1,path.length - 1);
        jsb.fileUtils.setSearchPaths(path.split(','));
    }
}

cc.game.onStart = function()
{
.....
}

in my game is say alreay updated but my updates doesnt get applied..
please help frowning been bugging it for a week now

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>