X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftile.h;h=531a93172894a3639f33fdcf95a9874b677b8d1e;hb=56093b6614a47b181bbce6d4e35d213a4e04120c;hp=ea5c4be54b4598d1aeadede016ed27a114448205;hpb=770305e28dc0ed9aea0eefe041477a46d64eee58;p=dragonfireclient.git diff --git a/src/tile.h b/src/tile.h index ea5c4be54..531a93172 100644 --- a/src/tile.h +++ b/src/tile.h @@ -34,6 +34,17 @@ class IGameDef; tile.{h,cpp}: Texture handling stuff. */ +/* + Find out the full path of an image by trying different filename + extensions. + + If failed, return "". + + TODO: Should probably be moved out from here, because things needing + this function do not need anything else from this header +*/ +std::string getImagePath(std::string path); + /* Gets the path to a texture by first checking if the texture exists in texture_path and if not, using the data path.