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

Function _io_file_read

src/script/squirrel.cpp:615–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615static SQInteger _io_file_read(SQUserPointer file, SQUserPointer buf, SQInteger size)
616{
617 SQInteger ret = reinterpret_cast<SQFile *>(file)->Read(buf, size);
618 if (ret == 0) return -1;
619 return ret;
620}
621
622SQRESULT Squirrel::LoadFile(HSQUIRRELVM vm, const std::string &filename, SQBool printerror)
623{

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected