From 084be3599a5ef0acba7c341bfd14a4e9801423a2 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 15 Feb 2013 21:13:53 +0200 Subject: Get menu background image from selected game --- src/tile.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/tile.h') 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. -- cgit v1.2.3