CVirtualDirectory: Add const getters
Allows data retrieval even with const variants of virtual directories.
@@ -54,8 +54,10 @@ public:
uint32 NumSubdirectories() const { return mSubdirectories.size(); }
CVirtualDirectory* SubdirectoryByIndex(uint32 Index) { return mSubdirectories[Index]; }
+ const CVirtualDirectory* SubdirectoryByIndex(uint32 Index) const { return mSubdirectories[Index]; }
uint32 NumResources() const { return mResources.size(); }
CResourceEntry* ResourceByIndex(uint32 Index) { return mResources[Index]; }
+ const CResourceEntry* ResourceByIndex(uint32 Index) const { return mResources[Index]; }
};
#endif // CVIRTUALDIRECTORY
