Fix broken loose file resources when using Ogre 1.9

actorid
scrawl 12 years ago
parent 11a45b3034
commit d5c7a26041

@ -313,21 +313,26 @@ public:
void destroyInstance( Archive* arch) { delete arch; } void destroyInstance( Archive* arch) { delete arch; }
}; };
class DirArchiveFactory : public FileSystemArchiveFactory class DirArchiveFactory : public ArchiveFactory
{ {
public: public:
const String& getType() const const String& getType() const
{ {
static String name = "Dir"; static String name = "Dir";
return name; return name;
} }
Archive *createInstance( const String& name ) Archive *createInstance( const String& name )
{ {
return new DirArchive(name); return new DirArchive(name);
} }
void destroyInstance( Archive* arch) { delete arch; } virtual Archive* createInstance(const String& name, bool readOnly)
{
return new DirArchive(name);
}
void destroyInstance( Archive* arch) { delete arch; }
}; };

Loading…
Cancel
Save