@deil wrote:
Hi all!
I'm trying to implement careful handling of assets downloading process. And looking through AssetsManagerEx code I don't see any way to handle a situation when we have downloaded broken zip file or had another problem while unzipping downloaded file.
According to source code, if assetsmanager detects any error while decompressing, it transitions to state FAIL_TO_UPDATE, fires event ERROR_DECOMPRESS and stops. And after restarting the game, is thinks that previous update went well, because updated manifest has been already updated! Right before unzipping attempt.
Am I missing something? Without patching cocos2d-x code I don't see any way to handle this situation.
Thanks!
Posts: 2
Participants: 1