From d3477eedc113a2c126f36f41384b8921d610906a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 8 Feb 2008 19:24:12 +0000 Subject: updated filesystem, removed inifile, updated game and tga loader minor cleanups --- src/filesystem/filesystem.h | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'src/filesystem/filesystem.h') diff --git a/src/filesystem/filesystem.h b/src/filesystem/filesystem.h index 1685fd2..83e93c0 100644 --- a/src/filesystem/filesystem.h +++ b/src/filesystem/filesystem.h @@ -7,7 +7,9 @@ #ifndef __INCLUDED_FILESYSTEM_H__ #define __INCLUDED_FILESYSTEM_H__ -// C++ headers +#include "filesystem/file.h" +#include "filesystem/diskfile.h" + #include /// The filesystem namespace contains classes and functions for common file operations. @@ -17,25 +19,33 @@ namespace filesystem { /// location of the main data files, includes trailing / extern std::string datadir; + /// location of the personal data files, includes trailing / extern std::string homedir; + +/// writeable location +extern std::string writedir; + /// subdirectory with the base data files, includes trailing / extern std::string basedir; + /// subdirectory for the current mod, includes trailing / extern std::string moddir; -/// Initialize the filesystem subsystem +/// initialize the filesystem subsystem void init(); -/// Shutdown the filesystem subsystem +/// shutdown the filesystem subsystem void shutdown(); -} // namespace filesystem +/// open a file and return a pointer to a File instance +File *open(const char *filename); +/// open a file and return a pointer to a File instance +File *open(const std::string &filename); +/// close and delete a file instance +void close(File *file); -// project headers -#include "filesystem/file.h" -#include "filesystem/path.h" -#include "filesystem/inifile.h" +} // namespace filesystem #endif // __INCLUDED_FILYSYSTEM_H__ -- cgit v1.2.3