mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 16:29:55 +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 <components/vfs/pathutil.hpp>
|
||||
|
||||
#include "objectcache.hpp"
|
||||
|
||||
namespace VFS
|
||||
|
@ -70,11 +72,11 @@ namespace Resource
|
|||
double mExpiryDelay;
|
||||
};
|
||||
|
||||
class ResourceManager : public GenericResourceManager<std::string>
|
||||
class ResourceManager : public GenericResourceManager<VFS::Path::Normalized>
|
||||
{
|
||||
public:
|
||||
explicit ResourceManager(const VFS::Manager* vfs, double expiryDelay)
|
||||
: GenericResourceManager<std::string>(vfs, expiryDelay)
|
||||
: GenericResourceManager(vfs, expiryDelay)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue