MCPcopy Create free account
hub / github.com/TASEmulators/fceux / freadint

Function freadint

src/lua-engine.cpp:1300–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298 }
1299}
1300void freadint(unsigned int& value, FILE* file)
1301{
1302 int rv = 0;
1303 for(int i=0;i<4;i++)
1304 {
1305 int r = 0;
1306 if ( fread(&r, 1, 1, file) == 0)
1307 {
1308 break;
1309 }
1310 rv |= r << (i*8);
1311 }
1312 value = rv;
1313}
1314
1315// writes all records to an already-open file
1316void LuaSaveData::ExportRecords(void* fileV) const

Callers 1

ImportRecordsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected