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:
parent
b5b6744321
commit
cd3c3ebadb
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue