summaryrefslogtreecommitdiff
path: root/src/resources/resource.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-28 03:08:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-28 03:08:30 +0300
commit5986e192171faa3f7a1422b1f8fd3e561ed5f693 (patch)
tree224533452bb32762c5ca2467c3b8464d0d4c2f2a /src/resources/resource.h
parent282101785316498f3d7f194e94815608d39017b7 (diff)
downloadmanaverse-5986e192171faa3f7a1422b1f8fd3e561ed5f693.tar.gz
manaverse-5986e192171faa3f7a1422b1f8fd3e561ed5f693.tar.bz2
manaverse-5986e192171faa3f7a1422b1f8fd3e561ed5f693.tar.xz
manaverse-5986e192171faa3f7a1422b1f8fd3e561ed5f693.zip
Add source field to each resources.
Diffstat (limited to 'src/resources/resource.h')
-rw-r--r--src/resources/resource.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h
index d8f4a7f11..76dd71b4f 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -75,6 +75,12 @@ class Resource
unsigned getRefCount() const
{ return mRefCount; }
+ void setSource(const std::string str)
+ { mSource = str; }
+
+ std::string getSource() const
+ { return mSource; }
+
#ifdef DEBUG_DUMP_LEAKS
bool getDumped() const
{ return mDumped; }
@@ -94,7 +100,7 @@ class Resource
private:
time_t mTimeStamp; /**< Time at which the resource was orphaned. */
unsigned mRefCount; /**< Reference count. */
- std::string mName;
+ std::string mSource;
#ifdef DEBUG_DUMP_LEAKS
bool mDumped;
#endif