From 715d07feeb01a3f633aa42aeb40a524c16ca321e Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 13 Jan 2011 17:58:50 +0100 Subject: Made the client handle better the lack of items.xml file. Now the client returns to server choice dialog with a warning instead of aborting. I'm kinda certain I'm not the only one getting crazy with such a lazy behaviour. Reviewed-by: Jaxad. --- src/resources/itemdb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resources/itemdb.h') diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h index e4146131..9109898b 100644 --- a/src/resources/itemdb.h +++ b/src/resources/itemdb.h @@ -28,6 +28,8 @@ #include "utils/xml.h" +#define ITEMS_DB_FILE "items.xml" + class ItemInfo; class SpriteDisplay; @@ -50,6 +52,12 @@ class ItemDB */ void unload(); + /** + * Tells whether the item database is loaded. + */ + bool isLoaded() const + { return mLoaded; } + bool exists(int id); const ItemInfo &get(int id); -- cgit v1.2.3-60-g2f50