From 4bf5065a9cdaf55a6915e647e9b5de5281d6622f Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Wed, 8 Feb 2012 11:49:24 +0100 Subject: Cache textures by checksum --- src/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 3a47a08f6..8d7597e80 100644 --- a/src/client.h +++ b/src/client.h @@ -34,6 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "gamedef.h" #include "inventorymanager.h" #include "filesys.h" +#include "filecache.h" struct MeshMakeData; class MapBlockMesh; @@ -366,6 +367,10 @@ private: bool m_access_denied; std::wstring m_access_denied_reason; Queue m_client_event_queue; + FileCache m_texture_cache; + // a map of the name and SHA1 checksum of each texture; + // cleared after content has been recieved + core::map m_texture_name_sha1_map; float m_texture_receive_progress; bool m_textures_received; bool m_itemdef_received; -- cgit v1.2.3