diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-16 21:28:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-16 21:28:08 +0300 |
commit | 82ac4641828ec7387863bb18cf4493190c4cc68f (patch) | |
tree | 54fa2aeeff83109ca289894bf08bc767084050a3 /src/gui/sdlfont.cpp | |
parent | 07e8275965ccb989e3bcc288e2440bffcbca4a8e (diff) | |
download | manaplus-82ac4641828ec7387863bb18cf4493190c4cc68f.tar.gz manaplus-82ac4641828ec7387863bb18cf4493190c4cc68f.tar.bz2 manaplus-82ac4641828ec7387863bb18cf4493190c4cc68f.tar.xz manaplus-82ac4641828ec7387863bb18cf4493190c4cc68f.zip |
Remove Exception class.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r-- | src/gui/sdlfont.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index bed4a9f31..95a3df390 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -39,8 +39,6 @@ #include "utils/stringutils.h" #include "utils/timer.h" -#include "gui/base/exception.hpp" - #include "debug.h" const unsigned int CACHE_SIZE = 256; @@ -350,7 +348,7 @@ SDLFont::SDLFont(std::string filename, mSoftMode = imageHelper->useOpenGL() == RENDER_SOFTWARE; if (TTF_Init() == -1) { - throw GCN_EXCEPTION("Unable to initialize SDL_ttf: " + + logger->error("Unable to initialize SDL_ttf: " + std::string(TTF_GetError())); } } @@ -373,8 +371,8 @@ SDLFont::SDLFont(std::string filename, mFont = openFont(fixDirSeparators(backFile).c_str(), size); if (!mFont) { - throw GCN_EXCEPTION("SDLSDLFont::SDLSDLFont: " + - std::string(TTF_GetError())); + logger->error("SDLSDLFont::SDLSDLFont: " + + std::string(TTF_GetError())); } } |