Skip to content

Commit

Permalink
exit if fail to load fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
DailyShana committed Oct 12, 2018
1 parent d58af46 commit 1caf028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gframe/game.cpp
Expand Up @@ -75,6 +75,8 @@ bool Game::Initialize() {
lpcFont = irr::gui::CGUITTFont::createTTFont(env, gameConf.numfont, 48);
guiFont = irr::gui::CGUITTFont::createTTFont(env, gameConf.textfont, gameConf.textfontsize);
textFont = guiFont;
if(!numFont || !textFont)
return false;
smgr = device->getSceneManager();
device->setWindowCaption(L"YGOPro");
device->setResizable(false);
Expand Down

0 comments on commit 1caf028

Please sign in to comment.