2.4.0 热更新 子游戏 搜索路径 重置问题

  • Creator 版本:2.4.0

  • 目标平台: window

  • 详细报错信息,包含调用堆栈:

  • 重现方式:

  • 之前哪个版本是正常的 :

  • 手机型号 :

  • 手机浏览器 :

  • 编辑器操作系统 :

  • 编辑器之前是否有其它报错 :

  • 出现概率:

  • 额外线索:
    热更新子游戏前保留了搜索路径
    let searchPath = [];
    if (cc.sys.isNative) {
    searchPath = jsb.fileUtils.getSearchPaths();
    console.log(‘searchPath 无污染的’ + searchPath);
    };

在检查版本checkUpdate 函数中 这地方重置回保存的路径 更新后引用的还是老资源 (不重置是引用新资源)
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
this._am.loadLocalManifest(this.loadCustomManifest(), ‘’);

        console.log('searchPath  checkUpdate 无污染的' + searchPath);
        // 重置搜索路径
        jsb.fileUtils.setSearchPaths(searchPath)

    };

我 1.9 多是这么写的 可以