Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Check fnt files for errors prior to adding to scene #6

Open
andrew0 opened this issue Mar 28, 2012 · 0 comments
Open

Check fnt files for errors prior to adding to scene #6

andrew0 opened this issue Mar 28, 2012 · 0 comments
Labels

Comments

@andrew0
Copy link
Owner

andrew0 commented Mar 28, 2012

As it stands, when adding a CCLabelBMFont, if there is an error (e.g. missing image file) the program just crashes as at NSAssert from CCLabelBMFont.m. This should be avoided and instead just display an error message to the user, informing them of the issue.

The easiest way to do this would be to have NSExceptions for CCLabelBMFont instead of NSAsserts. This way the error could simply be caught, then the error message can be relayed to the user.

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

No branches or pull requests

1 participant