Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17098

AssetsManager and different kinds of failures

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 17098

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>