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

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

Description

@andrew0

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions