significance of search path in hot update and whether we can change it ?

hi,
while hot updating, we prepend the local manifest search path to the hot update search paths and the file utils search paths. i want to know what the significance of this prepended search path is(because only this first value is used in main.js), and whether we can change it. since the search path field in project.manifest is empty, maybe we can put a value there. also, when all are the files from the search path copied to the storage path?
also, if we are to change the search path, what could be a good candidate for an alternative?
thanks!

Hi, if you want to change search paths, you need to use custom Manifest, refer the to HotUpdate.js.

var manifest = new jsb.Manifest(custom_manifest_string, this._storagePath);
this._am.loadLocalManifest(manifest, this._storagePath);

when you get the jsb.EventAssetsManager.UPDATE_FINISHED message,it means update finish, and you can get the final search paths by:

var newPaths = this._am.getLocalManifest().getSearchPaths();

NOTE: when you hot update finish, you need force restart, because the storage path files has been change to new version, next time you read file would be a new version file if you no restart.