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

Method isSavable

src/Osako/SystemFile.cpp:286–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286bool SystemFile::isSavable()
287{
288 if (mSectionCount == 0)
289 return true;
290
291 for (int i = 0; i < 2; i++)
292 {
293 // Uhhh don't you want to check if both checksums are identical?
294#ifndef VIDEO_PAL
295 if ((mValidSections & 1 << i) && (mDataChecksums[i] == mFileData[i].mCheckData.mChecksum))
296 return true;
297#else
298 if ((mDataChecksums[i] == 0) || (mValidSections & 1 << i) && (mDataChecksums[i] == mFileData[i].mCheckData.mChecksum))
299 return true;
300#endif
301 }
302 return false;
303}

Callers 1

waitReadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected