/[adonthell]/doc/architecture/mod_base.tex
ViewVC logotype

Diff of /doc/architecture/mod_base.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ksterker, Sat Oct 30 13:13:02 2004 UTC revision 1.2 by ksterker, Mon Nov 15 09:01:12 2004 UTC
# Line 59  Usually, there will be one directory for Line 59  Usually, there will be one directory for
59  To ease the handling of data files, the base module provides a search strategy that operates on those three directories (which will differ for different games, of course). The method {\tt path::open} tries to locate a file in one of the directories in the following order:  To ease the handling of data files, the base module provides a search strategy that operates on those three directories (which will differ for different games, of course). The method {\tt path::open} tries to locate a file in one of the directories in the following order:
60    
61  \begin{enumerate}  \begin{enumerate}
62  \item Saved Game directory (if specified)  \item Saved game directory (if specified)
63  \item User supplied data directory (if specified)  \item User supplied data directory (if specified)
64  \item Game specific data directory  \item Game specific data directory
65  \end{enumerate}  \end{enumerate}
66    
67  The first matching file is opened. Data files should always be opened this way instead of requiring them to sit in a fixed location. Later on, this mechanism might be expanded by addon or patch directories that will be added to the search path above.  The first matching file is opened. Data files should always be opened this way instead of requiring them to sit in a fixed location. Later on, this mechanism might be expanded by addon or patch directories that will have to be included in the search path above.
68    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26