OpenTTD
|
Yes, simply reading from a file. More...
Public Member Functions | |
FileReader (FILE *file) | |
Create the file reader, so it reads from a specific file. | |
~FileReader () | |
Make sure everything is cleaned up. | |
size_t | Read (byte *buf, size_t size) |
Read a given number of bytes from the savegame. | |
void | Reset () |
Reset this filter to read from the beginning of the file. | |
![]() | |
LoadFilter (LoadFilter *chain) | |
Initialise this filter. | |
virtual | ~LoadFilter () |
Make sure the writers are properly closed. |
Data Fields | |
FILE * | file |
The file to read from. | |
long | begin |
The begin of the file. | |
![]() | |
LoadFilter * | chain |
Chained to the (savegame) filters. |
Yes, simply reading from a file.
Definition at line 1886 of file saveload.cpp.
|
inline |
Create the file reader, so it reads from a specific file.
file | The file to read from. |
Definition at line 1894 of file saveload.cpp.
|
inline |
Make sure everything is cleaned up.
Definition at line 1899 of file saveload.cpp.
References file, and SaveLoadParams::sf.
|
inlinevirtual |
Read a given number of bytes from the savegame.
buf | The bytes to read. |
len | The number of bytes to read. |
Implements LoadFilter.
Definition at line 1908 of file saveload.cpp.
References file.