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 |
|
|