0ad/source/tools/atlas/AtlasUI/General/Datafile.h
Ykkrosh 13f2e3ca0c Tried compiling with ICC9 on Linux, which raised various issues:
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
 * Removed some redundant declarations of g_Console.
 * Removed some unnecessary semicolons.
 * Removed some unused variables.
 * Added throw specification to operator new.

This was SVN commit r4698.
2006-12-16 01:01:15 +00:00

20 lines
682 B
C++

#include "AtlasObject/AtlasObject.h"
namespace Datafile
{
// Read configuration data from data/tools/atlas/lists.xml
AtObj ReadList(const char* section);
// Specify the location of .../binaries/system, as an absolute path, or
// relative to the current working directory.
void SetSystemDirectory(const wxString& dir);
// Returns the location of .../binaries/data. (TODO (eventually): replace
// this with a proper VFS-aware system.)
wxString GetDataDirectory();
// Returns a list of files matching the given wildcard (* and ?) filter
// inside .../binaries/data/<dir>, not recursively.
wxArrayString EnumerateDataFiles(const wxString& dir, const wxString& filter);
}