Derive Mogre fileSystem with .net file system?

boyamer

26-11-2009 11:19:31

Hi all,i want to know if there is a way to derive Mogre FileSystem with .net file system?
For example to have access on File full path,when calling OpenResource to retrieve a C# Stream instead of
Ogre DataStream?

Thanks

smiley80

26-11-2009 13:51:44

FileInfoListPtr res = ResourceGroupManager.Singleton.FindResourceFileInfo(resourceGroupName, resourceName);
FileInfo_NativePtr fi = res[0];

string fullpath = Path.Combine(fi.archive.Name, fi.filename);

res.Dispose();


Only works when the resource is not in a zip file.