Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

热更新失败会造成资源丢失 #2107

Open
benloong opened this issue Feb 5, 2020 · 0 comments
Open

热更新失败会造成资源丢失 #2107

benloong opened this issue Feb 5, 2020 · 0 comments

Comments

@benloong
Copy link
Contributor

benloong commented Feb 5, 2020

https://github.com/cocos-creator/cocos2d-x-lite/blob/7f320fa01140fc6e20b3a09083d624d89289b375/extensions/assets-manager/AssetsManagerEx.cpp#L881

这里预先删除掉了文件,当后续资源下载失败的情况下会造成资源丢失。如果初始场景用到该资源则不能正常开启游戏。
应该先缓存到一个删除列表中,统一在在updateSucceed中合并资源时删除该列表中的文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant