Jump to content
  • Advertisement
Sign in to follow this  

Virtual File System Design question, feedback requested

This topic is 3798 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Language: C++ Compiler: Visual C++ Express 2008 Platform: Win32 I am considering having a virtual file system and was planning on storing my files in a map. When I load in a file I was going to give it an integer ID which would be the key. My problem lies in the fact that I can't figure out how the application would determine the ID of the file it needs. For example, if I had load("gun.bmp"); //that would put the gun.bmp in the map at say (1, "gun.bmp") how would I use this in my app without doing some kind of search of the map? If I pass a filename to the map and search the map for that filename then what was the point of using the map to begin with? [Edited by - murdock on May 28, 2008 11:03:05 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!