summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-27 23:02:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-27 23:02:41 +0300
commit3c696abed2aa5b7b8b349b9c4c14c69436ec2d27 (patch)
tree7972afdd8ab3809eee249d67ceb7a80682026dfc /src/resources/resourcemanager.h
parentaeff5ccbda56ef0dd4259f0b02ba318c28b7945b (diff)
downloadmv-3c696abed2aa5b7b8b349b9c4c14c69436ec2d27.tar.gz
mv-3c696abed2aa5b7b8b349b9c4c14c69436ec2d27.tar.bz2
mv-3c696abed2aa5b7b8b349b9c4c14c69436ec2d27.tar.xz
mv-3c696abed2aa5b7b8b349b9c4c14c69436ec2d27.zip
Add support for deleted resource list in resourse manager.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index 7ed510ac4..2c9fbe3eb 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -224,6 +224,11 @@ class ResourceManager final
void release(Resource *const res);
/**
+ * Move resource to deleted resources list.
+ */
+ void moveToDeleted(Resource *const res);
+
+ /**
* Allocates data into a buffer pointer for raw data loading. The
* returned data is expected to be freed using <code>free()</code>.
*
@@ -307,6 +312,7 @@ class ResourceManager final
std::set<SDL_Surface*> deletedSurfaces;
Resources mResources;
Resources mOrphanedResources;
+ Resources mDeletedResources;
time_t mOldestOrphan;
std::string mSelectedSkin;
std::string mSkinName;