Skip to main content
gamedev.net
🔒 Locked

VFS

Started by Austrian Coder 0 replies 350+ views
Original Post
Austrian Coder
Austrian Coder
Hello! I am working on a Virtual File System. I can get all informations about a pack. Now i want to make a class, for file input, which supports the vfs and the normal fs, if the file could not be found in the vfs. Here is how the informations about the packs are stored:
  
class CVFS
{
public:
// routines to open and close multiple packs

...
...
// get informations like NumOfFiles, NumOfDires....


private:
	std::vector<VFSHeader>	m_headers;
	std::vector<VFSDictory> m_dirs;
	std::vector<VFSFile>	m_files;
};
  
Now a basic class with functions like: Open, Close, Read, Readline, Seek, GetPos, GetSize would be great. But i dont know how to get access to the informaions about files and dirs. The CVFS class should not give the informations with public functions. Thanks for your help, Christian

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.