mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
make otml simpler and easier to use, improve error handling/exceptions
This commit is contained in:
@@ -24,7 +24,7 @@ TexturePtr TextureManager::getTexture(const std::string& textureFile)
|
||||
try {
|
||||
// currently only png textures are supported
|
||||
if(!boost::ends_with(textureFile, ".png"))
|
||||
throw std::logic_error("texture file format no supported");
|
||||
throw std::runtime_error("texture file format no supported");
|
||||
|
||||
// load texture file data
|
||||
std::stringstream fin;
|
||||
|
||||
Reference in New Issue
Block a user