MCPcopy Create free account
hub / github.com/doldecomp/mkdd / fetch

Method fetch

src/Osako/SystemFile.cpp:46–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void SystemFile::fetch()
47{
48 gSystemRecord.mTimesFetched++;
49
50 if (mPart == mcHeader)
51 initHeader();
52
53 switch (mSectionCount)
54 {
55 case 0:
56 initData(mCurrentIndex);
57 mFileData[mCurrentIndex].mSystemRecord = gSystemRecord;
58 case 1:
59 case 2:
60 initData(mBackupIndex);
61 mFileData[mBackupIndex].mSystemRecord = gSystemRecord;
62 mCurrentIndex = mBackupIndex;
63 mBackupIndex ^= 1;
64 break;
65 }
66}
67
68void SystemFile::store()
69{

Callers 1

writeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected