MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Read

Method Read

src/saveload/saveload.cpp:2375–2381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2373 }
2374
2375 size_t Read(uint8_t *buf, size_t size) override
2376 {
2377 /* We're in the process of shutting down, i.e. in "failure" mode. */
2378 if (!this->file.has_value()) return 0;
2379
2380 return fread(buf, 1, size, *this->file);
2381 }
2382
2383 void Reset() override
2384 {

Callers 7

ReadByteMethod · 0.45
ReadMethod · 0.45
ReadMethod · 0.45
ReadMethod · 0.45
ReadMethod · 0.45
DoLoadFunction · 0.45
LoadSettingsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected