OpenTTD Source
20241108-master-g80f628063a
|
Yes, simply reading from a file. More...
Public Member Functions | |
FileReader (FileHandle &&file) | |
Create the file reader, so it reads from a specific file. More... | |
~FileReader () | |
Make sure everything is cleaned up. | |
size_t | Read (uint8_t *buf, size_t size) override |
Read a given number of bytes from the savegame. More... | |
void | Reset () override |
Reset this filter to read from the beginning of the file. | |
Public Member Functions inherited from LoadFilter | |
LoadFilter (std::shared_ptr< LoadFilter > chain) | |
Initialise this filter. More... | |
virtual | ~LoadFilter () |
Make sure the writers are properly closed. | |
Data Fields | |
std::optional< FileHandle > | file |
The file to read from. | |
long | begin |
The begin of the file. | |
Data Fields inherited from LoadFilter | |
std::shared_ptr< LoadFilter > | chain |
Chained to the (savegame) filters. | |
Yes, simply reading from a file.
Definition at line 2206 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 2214 of file saveload.cpp.
|
inlineoverridevirtual |
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 2226 of file saveload.cpp.