#include <vector>
#include "SDL.h"
Go to the source code of this file.
◆ CL_OPEN_READ
◆ CL_OPEN_WRITE
#define CL_OPEN_WRITE 0x2 |
◆ CL_WRITE_BZ2
◆ CL_WRITE_GZ
◆ anonymous enum
Enumerator |
---|
CLF_TYPE_INVALID | |
CLF_TYPE_PLAIN | invalid file handle
|
CLF_TYPE_GZIP | plain text file handle
|
CLF_TYPE_BZIP2 | gzip file handle
bzip2 file handle
|
◆ CanAccessFile()
bool CanAccessFile |
( |
const char * |
filename | ) |
|
◆ CreateFileWriter()
FileWriter* CreateFileWriter |
( |
const std::string & |
filename | ) |
|
Create a file writer object that works for the given file name.
If the file name ends with '.gz', the file writer returned will compress the data with zlib.
Create FileWriter
◆ LibraryFileName()
std::string LibraryFileName |
( |
const char * |
file | ) |
|
◆ QuoteArguments()
std::vector<std::string> QuoteArguments |
( |
std::vector< std::string > |
args | ) |
|
Quote arguments for usage in calls to system(), popen() and similar. Really only needed on Windows, where all these calls just concatenate all arguments with a space and pass the full string to the next process.
◆ ReadDataDirectory()
int ReadDataDirectory |
( |
const char * |
dirname, |
|
|
std::vector< FileList > & |
fl |
|
) |
| |
Read the contents of a directory.
Generate a list of files within a specified directory
- Parameters
-
dirname | Directory to read. |
fl | Filelist pointer. |
- Returns
- the number of entries added to FileList.
(C) Copyright 1998-2012 by The