Instead of checks for isPopupNotify() and displaying a UI popup on file system failures, throw a C++ exception.
This will allow :
* Developers to handle exceptions as necessary
* Script bindings to translate this exception to the scripting language (for example JS can translate this correctly to a JS exception)
* Cleaner code in CCFileUtils
* Maybe template/sample code can have a default exception to preserve current behaviour if this is absolutely necessary
See code here :
https://github.com/cocos2d/cocos2d-x/blob/gles20/cocos2dx/platform/android/CCFileUtils.cpp\#L130
Instead of checks for isPopupNotify() and displaying a UI popup on file system failures, throw a C++ exception.
This will allow :
* Developers to handle exceptions as necessary
* Script bindings to translate this exception to the scripting language (for example JS can translate this correctly to a JS exception)
* Cleaner code in CCFileUtils
* Maybe template/sample code can have a default exception to preserve current behaviour if this is absolutely necessary