Creator 热更新失败

发布平台为web desktop


python 简易服务

不修改main.js文件直接运行是ok的,但是不能检测到更新

给\build\web-desktop下面的main.js 添加了
// 在 main.js 的开头添加如下代码
if (cc.sys.isNative) {
var hotUpdateSearchPaths = cc.sys.localStorage.getItem(‘HotUpdateSearchPaths’);
if (hotUpdateSearchPaths) {
jsb.fileUtils.setSearchPaths(JSON.parse(hotUpdateSearchPaths));
}
}

在运行 creator中运行就变成这样了

可以打印一下看看 HotUpdateSearchPaths,估计是这里面没有包含正常的 searchPaths,导致引擎部分文件找不到

感谢 panda引擎开发团队

@panda our game successfully downloaded the updates… but when we restart the game… all we see is black…

错误提示是 cc undefined ?