MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / readHeaderAt

Function readHeaderAt

3ds/source/gbasave.cpp:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 bool readHeaderAt(FSStream& file, u32 offset, AgbSaveHeader& out)
82 {
83 file.offset(offset);
84 return file.read(&out, kHeaderSize) == kHeaderSize && R_SUCCEEDED(file.result()) && validHeader(out);
85 }
86
87 // Finds the newest slot of the container behind `file` (an AGBSAVE
88 // container: PXI save file or legacy SD dump). Returns false when no slot

Callers 1

locateCurrentSlotFunction · 0.85

Calls 4

validHeaderFunction · 0.85
resultMethod · 0.80
offsetMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected