Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    53
  • comments
    56
  • views
    33740

Design help, please

Sign in to follow this  
aidan_walsh

249 views

Nothing major, I just want to get a reaction from a few people here.

One of the abilities in an Installer Image is that of breaking the files to be installed into Components. This is pretty much as it suggests, a collection of related files that the user has a choice of installing or ignoring.

However, when I was designing my structures first, I put each component inside a single BaseDirectory, that being the folder that the component is installed into. Each file is installed to a path relative to the base directory.

However, it has struck me that perhaps I should restructure this the other way around, make the Component the top level structure, and put the directories inside that.

What do you guys think?
Sign in to follow this  


2 Comments


Recommended Comments

Each component should be totally path-agnostic; I should be able to put a file into an arbitrary path (absolute, relative, or relative to some variable like %system32%) from any component. Components should be only about grouping installed files, not about imposing file structure.

For instance:
MAIN STUFF

%appinstall%/engine.exe
%appinstall%/data/graphics.dat
%appinstall%/data/sounds.dat
%system32%/graphicslibrary.dll

REALLY KICKASS AUDIO COMPONENT
%appinstall%/extrasound.dll
%appinstall%/data/moresounds.dat
%system32%/soundlibrary.dll

Share this comment


Link to comment
I guess that makes a bit more sense alright.

This would be more along the lines of what I was thinking of, except where I have elements that represent the folders, you just leave them in the files path. I had move them up a level to allow for the possibility of applying attributes to the folder at a later date with the minimum of difficulty.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!