for debugging purposes, il would like while my game is loading external files (models, bitmaps, textures...) be able to display a windows message box saying "File wall.bmp can't be found !" to avoid my irrlicht game to crash without telling me the missing file.
How can i do that ?
Thanks
Eviral
Display a windows message box when a texture can't be found
I'd place a bet on something like this:
You would, of course need to know the names of all your textures and load them manually.
Code: Select all
c8* filename = "texture.tga";
ITexture* texture = driver->getTexture(filename);
if (!texture){
//Display the message box, where you also display the filename variable contents
}
