1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 12:40:25 +00:00

Use VFS::Path::Normalized for ResourceManager cache key

This commit is contained in:
elsid 2024-03-01 18:42:21 +01:00
parent b5b6744321
commit cd3c3ebadb
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -3,6 +3,8 @@
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include <components/vfs/pathutil.hpp>
#include "objectcache.hpp" #include "objectcache.hpp"
namespace VFS namespace VFS
@ -70,11 +72,11 @@ namespace Resource
double mExpiryDelay; double mExpiryDelay;
}; };
class ResourceManager : public GenericResourceManager<std::string> class ResourceManager : public GenericResourceManager<VFS::Path::Normalized>
{ {
public: public:
explicit ResourceManager(const VFS::Manager* vfs, double expiryDelay) explicit ResourceManager(const VFS::Manager* vfs, double expiryDelay)
: GenericResourceManager<std::string>(vfs, expiryDelay) : GenericResourceManager(vfs, expiryDelay)
{ {
} }
}; };