diff options
Diffstat (limited to 'src/render/render.cc')
-rw-r--r-- | src/render/render.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/render.cc b/src/render/render.cc index fa26021..aafa9ba 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -6,6 +6,7 @@ // project headers #include "render/render.h" +#include "core/core.h" #include "sys/sys.h" namespace render { @@ -22,8 +23,14 @@ void init() con_print << "Loading textures..." << std::endl; - TGA::texture(textures, "bitmaps/loader.tga", 0); - TGA::texture(textures, "bitmaps/conchars.tga", 1); + if (!TGA::texture(textures, "bitmaps/loader.tga", 0)) { + con_error << "Essential file bitmaps/loader.tga missing" << std::endl; + core::application()->shutdown(); + } + if (!TGA::texture(textures, "bitmaps/conchars.tga", 1)) { + con_error << "Essential file bitmaps/conchars.tga missing" << std::endl; + core::application()->shutdown(); + } } void shutdown() |