Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- Game game;
- try
- {
- game.run();
- }
- catch (BadResolutionException & e)
- {
- Notification::showErrorMessage(e.what(), "ERROR: Resolution");
- return 1;
- }
- catch (BadAssetException & e)
- {
- Notification::showErrorMessage(e.what(), "ERROR: Assets");
- return 1;
- }
- catch (std::bad_alloc & e)
- {
- Notification::showErrorMessage(e.what(), "ERROR: Memory");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement